Original Post
I'm attempting to build a working static lib of SDL_config, since the creator saw it fit to exclude the extra 247kb. Now, the project builds fine, and creates libSDL_config.a (linked with libSDL, and libSDLmain, building as a static library). When I attempt to use my newly created libSDL_config.a in my project, Code::Blocks comes up with...
-------------- Build: default in LWrapper ---------------
Linking executable: ..\build.exe
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x4cc): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x4d8): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x5f2): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x6b7): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x7c0): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x82a): more undefined references to `SDL_SetError' follow
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0xa29): undefined reference to `SDL_RWFromFile'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0xa3e): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x2b0c): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x2bc1): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x3025): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x30fb): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x3246): more undefined references to `SDL_SetError' follow
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x8048): undefined reference to `SDL_RWFromFile'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x805d): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x824f): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x8472): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x84ca): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x8b56): undefined reference to `SDL_SetError'
lib\libSDL_Config.a(SDL_config.o):SDL_config.c:(.text+0x8c96): more undefined references to `SDL_SetError' follow
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
0 errors, 0 warnings
I have a feeling I've missed a link somewhere, any suggestions? [Edited by - AaronA on June 29, 2007 6:46:32 PM]