my sample app just made a SDL_Init and include “SDL.h”
i compile it with :
gcc -o sample sample.c sdl-config --cflags --libs -lX11
-I/usr/X11R6/include -L/usr/X11R6/lib
and when i launch it i’ve got :
/usr/libexec/ld.so: Undefined symbol “_XShmQueryExtension” called from
sample:/usr/local/lib/libSDL.so.5.3 at 0x4004d7f0
is it a share memory problem???
or did I forget an include in SDL makefile ???
i’ve got a similar pb with the SDL test app
for example if i compile testwin and launch it, i’ve got this
following error :
/usr/libexec/ld.so: Undefined symbol “_XOpenDisplay” called from
testwin:/usr/local/lib/libSDL.so.5.3 at 0x4004f758
thx gurus :))
be cool with my poor english :D------------------------------------------------------
Votre email partout et gratuit ! http://www.alinto.com
the last -I and -L args are meaningless since they only apply to following
arguments. You shouldn’t need -lX11 at all, it should come from sdl-config.
What does “sdl-config --libs” output on your system?
my sample app just made a SDL_Init and include “SDL.h”
i compile it with :
gcc -o sample sample.c sdl-config --cflags --libs -lX11
-I/usr/X11R6/include -L/usr/X11R6/lib
and when i launch it i’ve got :
/usr/libexec/ld.so: Undefined symbol “_XShmQueryExtension” called from
sample:/usr/local/lib/libSDL.so.5.3 at 0x4004d7f0
is it a share memory problem???
or did I forget an include in SDL makefile ???
i’ve got a similar pb with the SDL test app
for example if i compile testwin and launch it, i’ve got this
following error :
/usr/libexec/ld.so: Undefined symbol “_XOpenDisplay” called from
testwin:/usr/local/lib/libSDL.so.5.3 at 0x4004f758