I'm truing to use OpenGL with SDL in a project for the Switch,
I can get SDL to build / run on it. But when i try to use fucntions from SDL_opengl.h it causes linker errors.
Here is the code of what i am trying to build,
https://github.com/brammie15/SwitchEngine
And here is the error i keep getting
Code: Select all
linking application.elf
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/14.1.0/../../../../aarch64-none-elf/bin/ld: main.o: in function `main':
/home/bart/Downloads/application/source/main.cpp:76:(.text.startup.main+0xb0): undefined reference to `glMatrixMode'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:81: /home/bart/Downloads/application/application.elf] Error 1
make: *** [Makefile:171: build] Error 2
Any help?