[SDL] Help me linux
david monta
davmoram at hotmail.com
Tue Jun 7 13:44:31 PDT 2005
<br><br><br>>From: "Michael B. Edwin Rickert"
<panda at industry.no-ip.com><br>>Reply-To: "A list for
developers using the SDL library. (includesSDL-announce)"
<sdl at libsdl.org><br>>To: "A list for developers using the SDL
library. (includes SDL-announce)"<sdl at libsdl.org><br>>Subject:
Re: [SDL] Help me linux<br>>Date: Mon, 06 Jun 2005 16:46:10
-0700<br>><br>>david monta wrote:<br>><br>>>I have a problem
using SDL, when I try to compile a .cpp program i <br>>>get some
errors when the function SDL_Init is invoced, they are <br>>>like
"reference SDL_Init not define", and i don`t know what to do.
<br>>>I ran the following commands and the results ar show
belong:<br>><br>>What's the actual error instead of just a description
of it? (Copy & <br>>Paste :-) )<br>>How are you compiling? (See
bellow)<br>>Are you linking against the library? (See
bellow)<br>><br>>From what I can tell you're describing a linking
problem, which is <br>>most often caused by not linking the library
:-).<br>><br>>This is what your compile command should look like
(IIRC, been <br>>awhile since I've used SDL on
linux):<br>><br>>single line:<br>>gcc test.cpp -o test `sdl-config
--cflags --libs`<br>><br>>or multi line:<br>>gcc -c test.cpp -o
test.o `sdl-config --cflags`<br>>gcc test.o -o test `sdl-config
--libs`<br>><br>>_______________________________________________<br>>SDL
mailing
list<br>>SDL at libsdl.org<br>>http://www.libsdl.org/mailman/listinfo/sdl<br>
Thank you so much I was compiling in the wrong way, I'm just learning how to
use linux, I used the commands and works.
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.latam.msn.com/
More information about the SDL
mailing list