SDL and NetBsd

Hi,

i compile SDL-1.1.8 on NetBsd 1.42

but i’ve got some pb with my first app :slight_smile:

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

gcc -o sample sample.c sdl-config --cflags --libs -lX11
-I/usr/X11R6/include -L/usr/X11R6/lib

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?

for compiling, try

gcc -o sample sdl-config --cflags sample.c sdl-config --libs

Hey

Are you sure you have the headers for X ?

they are usually located under /usr/X11R6/include/X11 (at least under Linux, but there shouldn’t be much differences)

also, try to put the -I and the -L BEFORE the -lX11

Hope that helps

Aurelien> ----- Original Message -----

From: mad mad [mailto:madounet@alinto.com]
Sent: Monday, February 26, 2001 12:55 PM
To: sdl at lokigames.com
Subject: [SDL] SDL and NetBsd …

Hi,

i compile SDL-1.1.8 on NetBsd 1.42

but i’ve got some pb with my first app :slight_smile:

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 :smiley:


Votre email partout et gratuit ! http://www.alinto.com