[SDL] A problem about SDL
yangbocai2002 at sohu.com
yangbocai2002 at sohu.com
Sat Jun 23 18:52:09 PDT 2007
<p>Hello, </p><p> I am a fresh programmer, and want to study SDL nowadays, but now, I am in trouble with SDL. <br /> I installed all the libraries I known which can be seen below, but they didn't work. </p><p> My OS is RedHat Linux. </p><p> [root at RedHat share]# rpm -qa |grep SDL <br /> SDL-1.2.5-3 <br /> SDL_net-1.2.4-5 <br /> SDL-devel-1.2.5-3 <br /> SDL_image-devel-1.2.2-5 <br /> SDL_net-devel-1.2.4-5 <br /> SDL_mixer-1.2.4-7 <br /> SDL_image-1.2.2-5 <br /> SDL_mixer-devel-1.2.4-7 </p><p> I have a simple program named test.cpp. </p><p> #include "SDL/SDL.h" <br /> <br /> int main( int argc, char* argv[]) <br /> { <br /> SDL_Init(SDL_INIT_EVERYTHING); <br /> SDL_Quit(); <br /> return 0; <br /> } </p><p> The following error is given when the program executed: </p><p> [root at RedHat share]# g++ -o test test.cpp -ISDL <br /> /tmp/cck4qE54.o(.text+0x19): In function `main': <br /> : undefined reference to `SDL_Init' <br /> /tmp/cck4qE54.o(.text+0x21): In function `main': <br /> : undefined reference to `SDL_Quit' <br /> collect2: ld returned 1 exit status </p><p> Now I am stuck. <br /> I am looking forward to hear from you. Thank you very much. </p><p> yours sincerely, <br /> Young Boy </p>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070624/4a5f5298/attachment.html
More information about the SDL
mailing list