yaustar
UK GP32 & GP2X Owner
Try to setup a development environment using Codeblocks as an IDE (as it is constantly being developed on) but hit an linking errors trying to compile Guyfawkes SDL example in his user guide.
Using all the Libs linked from the guide and the latest release from http://www.codeblocks.org/
snippet of errors:
Cheers.
Using all the Libs linked from the guide and the latest release from http://www.codeblocks.org/
snippet of errors:
Code:
Project : test
Compiler : DevKitGP2X (called directly)
Directory : D:\GP2X\Test\
--------------------------------------------------------------------------------
Switching to target: default
Linking executable: D:\GP2X\Test\test.exe
C:\DevKitGP2X\lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_CreateThread':
SDL_systhread.c:(.text+0xac): undefined reference to `pthread_create'
C:\DevKitGP2X\lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_SetupThread':
SDL_systhread.c:(.text+0x184): undefined reference to `pthread_sigmask'
C:\DevKitGP2X\lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_WaitThread':
SDL_systhread.c:(.text+0x1e8): undefined reference to `pthread_join'
C:\DevKitGP2X\lib\libSDL.a(SDL_systhread.o): In function `SDL_SYS_KillThread':
SDL_systhread.c:(.text+0x210): undefined reference to `pthread_cancel'
C:\DevKitGP2X\lib\libSDL.a(SDL_sysmutex.o): In function `SDL_CreateMutex':
SDL_sysmutex.c:(.text+0x40): undefined reference to `pthread_mutexattr_init'
SDL_sysmutex.c:(.text+0x50): undefined reference to `pthread_mutexattr_setkind_np'
C:\DevKitGP2X\lib\libSDL.a(SDL_syssem.o): In function `SDL_CreateSemaphore':
SDL_syssem.c:(.text+0x4c): undefined reference to `sem_init'
C:\DevKitGP2X\lib\libSDL.a(SDL_syssem.o): In function `SDL_DestroySemaphore':
SDL_syssem.c:(.text+0xe0): undefined reference to `sem_destroy'
C:\DevKitGP2X\lib\libSDL.a(SDL_syssem.o): In function `SDL_SemTryWait':
SDL_syssem.c:(.text+0x148): undefined reference to `sem_trywait'
C:\DevKitGP2X\lib\libSDL.a(SDL_syssem.o): In function `SDL_SemWait':
SDL_syssem.c:(.text+0x1d0): undefined reference to `sem_wait'
C:\DevKitGP2X\lib\libSDL.a(SDL_syssem.o): In function `SDL_SemValue':
SDL_syssem.c:(.text+0x34c): undefined reference to `sem_getvalue'
C:\DevKitGP2X\lib\libSDL.a(SDL_syssem.o): In function `SDL_SemPost':
SDL_syssem.c:(.text+0x3c4): undefined reference to `sem_post'
C:\DevKitGP2X\lib\libSDL_image.a(IMG_bmp.o): In function `LoadBMP_RW':
IMG_bmp.c:(.text+0x65c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x66c): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x684): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x69c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x6ac): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x6c8): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x6d8): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x6e8): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x700): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x74c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x75c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x76c): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x784): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x79c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x7ac): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x7bc): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x7cc): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x7dc): undefined reference to `SDL_ReadLE32'
.................
.................
C:\DevKitGP2X\lib\libSDL_mixer.a(wavestream.o): In function `LoadAIFFStream':
wavestream.c:(.text+0xd90): undefined reference to `SDL_ReadBE32'
wavestream.c:(.text+0xda0): undefined reference to `SDL_ReadLE32'
wavestream.c:(.text+0xdf4): undefined reference to `SDL_ReadLE32'
wavestream.c:(.text+0xe04): undefined reference to `SDL_ReadBE32'
wavestream.c:(.text+0xe84): undefined reference to `SDL_ReadBE32'
wavestream.c:(.text+0xe94): undefined reference to `SDL_ReadBE32'
wavestream.c:(.text+0xee8): undefined reference to `SDL_ReadBE16'
wavestream.c:(.text+0xf00): undefined reference to `SDL_ReadBE32'
wavestream.c:(.text+0xf10): undefined reference to `SDL_ReadBE16'
Cheers.