I’m trying to compile programs that use SDL in Linux, but it doesn’t
found the X-functions(XSync,XGrabKeyboard,…,).
I have the /usr/X11/lib directory in the /etc/ld.so.conf, but i can’t
compile
do you have any idea about this?
I’m trying to compile programs that use SDL in Linux, but it doesn’t
found the X-functions(XSync,XGrabKeyboard,…,).
I have the /usr/X11/lib directory in the /etc/ld.so.conf, but i can’t
compile
do you have any idea about this?
If the problem is at compile time, perhaps you need to include them on
build line( eg -lX11 ).
Hope this helps,
–Ryan
Isaac wrote:>
I’m trying to compile programs that use SDL in Linux, but it doesn’t
found the X-functions(XSync,XGrabKeyboard,…,).I have the /usr/X11/lib directory in the /etc/ld.so.conf, but i can’t
compiledo you have any idea about this?
I’m trying to compile programs that use SDL in Linux, but it doesn’t
found the X-functions(XSync,XGrabKeyboard,…,).
If you installed SDL correctly, then you should be able to use the
sdl-config script to get that information to the compiler…
gcc -c foo.c sdl-config --cflags
gcc -o foo foo.o sdl-config --libs
Dan