SDL
ian
ian.porter3 at ntlworld.com
Sun May 12 23:03:15 BST 2002
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«
More information about the KDevelop
mailing list