Nintendo Switch SDL2 Errors

Post Reply
Father Of Egg
Posts: 1
Joined: Fri May 18, 2018 11:19 pm

Nintendo Switch SDL2 Errors

Post by Father Of Egg » Sat May 19, 2018 11:18 am

When I try to run make, it outputs:

Code: Select all

linking gdkGBA-master.elf
C:/devkitPro/portlibs/switch/lib\libSDL2.a(SDL_systhread.o): In function `SDL_ThreadID':
/home/davem/projects/devkitpro/pacman-packages/switch/SDL2/src/SDL2-2.0.8/src/thread/switch/SDL_systhread.c:66: undefined reference to `svcGetThreadId'
C:/devkitPro/portlibs/switch/lib\libSDL2.a(SDL_systhread.o): In function `SDL_SYS_SetThreadPriority':
/home/davem/projects/devkitpro/pacman-packages/switch/SDL2/src/SDL2-2.0.8/src/thread/switch/SDL_systhread.c:97: undefined reference to `svcSetThreadPriority'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro//libnx/switch_rules:52: /opt/devkitpro/msys2/gdkGBA-master/gdkGBA-master.elf] Error 1
make: *** [Makefile:152: build] Error 2
I must've been oblivious and done something wrong. Thank you.

WinterMute
Site Admin
Posts: 1390
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Nintendo Switch SDL2 Errors

Post by WinterMute » Sun May 20, 2018 3:24 am

It's hard to know without seeing your code but I suspect you have the wrong order for your LIBS line. libnx should be listed last.

It would be much better if you din't put your code inside the devkitpro folder & most especially not inside the msys folder there. Preferably use a projects folder in your home directory.
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests