Drag
Member
My linker keeps complaining about Semaphores and Threads whenever I try to compile:
Whenever I use the precompiled LIBs that paeryn posted.
When I use the ones that came with the devkit that's on the gp2x wiki, it compiles fine. Am I doing something wrong? I really would like to use the HW acceleration.
Code:
arm-linux-g++.exe main.o -o "GP2Xtest.exe" -L"C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib" -lSDL -s
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_syssem.o): In function `SDL_CreateSemaphore':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_syssem.c:103: undefined reference to `sem_init'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_syssem.o): In function `SDL_DestroySemaphore':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_syssem.c:129: undefined reference to `sem_destroy'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_syssem.o): In function `SDL_SemTryWait':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_syssem.c:144: undefined reference to `sem_trywait'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_syssem.o): In function `SDL_SemWait':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_syssem.c:165: undefined reference to `sem_wait'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_syssem.o): In function `SDL_SemValue':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_syssem.c:209: undefined reference to `sem_getvalue'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_syssem.o): In function `SDL_SemPost':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_syssem.c:230: undefined reference to `sem_post'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_sysmutex.o): In function `SDL_CreateMutex':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_sysmutex.c:72: undefined reference to `pthread_mutexattr_init'
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_sysmutex.c:77: undefined reference to `pthread_mutexattr_setkind_np'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_CreateThread':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_systhread.c:99: undefined reference to `pthread_create'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_SetupThread':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_systhread.c:117: undefined reference to `pthread_sigmask'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_WaitThread':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_systhread.c:136: undefined reference to `pthread_join'
C:/Program Files/Dev-Cpp/gp2x/devkitGP2X/lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_KillThread':
/home/darius/gp2x/sdl/libs-gp2x/SDL/src/thread/SDL_systhread.c:142: undefined reference to `pthread_cancel'
make.exe: *** [GP2Xtest.exe] Error 1
Whenever I use the precompiled LIBs that paeryn posted.
When I use the ones that came with the devkit that's on the gp2x wiki, it compiles fine. Am I doing something wrong? I really would like to use the HW acceleration.