SDL

ian ian.porter3 at ntlworld.com
Mon May 13 17:55:39 BST 2002


Opps.. I had got the SDL library link to a file that was not there ?. do not 
know why because I had installed SDL from rpms ?

But I now have this error when I run the program.  Any advice would be nice.

Loading required GL library /usr/X11R6/lib/libGL.so.1.2
SDL ERROR =:'Couldn't find matching GLX visual' at line 49

Ian

On Sunday 12 May 2002 11:03 pm, you wrote:
> Hi there,
>
> I am trying to compile a SDL Demo, but I am getting this error if I try to
> use the SDL Libraries. I have tried writting in the results from the
> sdl-config into the gcc line but there appears to have a linking error ?.
> because it seems to compile the code but not link it.  Have I missed
> something completely silly ?
>
> Cheers
> Ian
>
> $ gcc 'sdl-config --libs --cflags' -lGL -lGLU -o SDLDemo SDLDemo.cpp
> gcc: sdl-config --libs --cflags: No such file or directory
>
> $ gcc -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -I/usr/include/SDL
> -D_REENTRANT -lGL -lGLU -o SDLDemo SDLDemo.cpp
> /tmp/ccBgNUzw.o: In function `main':
> /tmp/ccBgNUzw.o(.text+0x6e): undefined reference to `SDL_Init'
> /tmp/ccBgNUzw.o(.text+0x80): undefined reference to `SDL_GetError'
> /tmp/ccBgNUzw.o(.text+0xa9): undefined reference to `SDL_Quit'
> /tmp/ccBgNUzw.o(.text+0xd2): undefined reference to `SDL_GL_SetAttribute'
> /tmp/ccBgNUzw.o(.text+0xe1): undefined reference to `SDL_GL_SetAttribute'
> /tmp/ccBgNUzw.o(.text+0xf0): undefined reference to `SDL_GL_SetAttribute'
> /tmp/ccBgNUzw.o(.text+0xff): undefined reference to `SDL_GL_SetAttribute'
> /tmp/ccBgNUzw.o(.text+0x10e): undefine
>
>
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> ;your-email-address+


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list