Pickle
Mega GP Mania
Im using the cutting edge open2x libs.
Linker flags: -static -lSDL_mixer -lSDL -lpthread
Build goes fine but I run into these errors:
CODE
/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/libSDL.a(SDL_sysloadso.o)||In function `SDL_UnloadObject'
SDL_sysloadso.c.text+0x8)||undefined reference to `dlclose'|
/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/libSDL.a(SDL_sysloadso.o)||In function `SDL_LoadFunction'
SDL_sysloadso.c.text+0x20)||undefined reference to `dlsym'|
SDL_sysloadso.c.text+0x78)||undefined reference to `dlsym'|
SDL_sysloadso.c.text+0x84)||undefined reference to `dlerror'|
/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/libSDL.a(SDL_sysloadso.o)||In function `SDL_LoadObject'
SDL_sysloadso.c.text+0xac)||undefined reference to `dlopen'|
SDL_sysloadso.c.text+0xb4)||undefined reference to `dlerror'|
I dont understand why this are here in the first place. I believe they are used to load a lib dynamically. I can place a -ldl at teh end and it takes of it, but then I think its expected the shared lib of glibc to be there with it.
The other thing that is strange is that this seems to occur only with compiling with codeblocks, I did a command line compilation with the same lib and theres no problem.
Linker flags: -static -lSDL_mixer -lSDL -lpthread
Build goes fine but I run into these errors:
CODE
/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/libSDL.a(SDL_sysloadso.o)||In function `SDL_UnloadObject'
SDL_sysloadso.c.text+0x8)||undefined reference to `dlclose'|
/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/libSDL.a(SDL_sysloadso.o)||In function `SDL_LoadFunction'
SDL_sysloadso.c.text+0x20)||undefined reference to `dlsym'|
SDL_sysloadso.c.text+0x78)||undefined reference to `dlsym'|
SDL_sysloadso.c.text+0x84)||undefined reference to `dlerror'|
/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/libSDL.a(SDL_sysloadso.o)||In function `SDL_LoadObject'
SDL_sysloadso.c.text+0xac)||undefined reference to `dlopen'|
SDL_sysloadso.c.text+0xb4)||undefined reference to `dlerror'|
I dont understand why this are here in the first place. I believe they are used to load a lib dynamically. I can place a -ldl at teh end and it takes of it, but then I think its expected the shared lib of glibc to be there with it.
The other thing that is strange is that this seems to occur only with compiling with codeblocks, I did a command line compilation with the same lib and theres no problem.