RE: [Dev-C++] Need help with linker error from SDL + OpenGL
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Damien A <g_...@ho...> - 2003-12-15 00:30:05
|
<html><div style='background-color:'><DIV class=RTE> <P>When compiling SDL programs on Dev-C++, make sure your linker arguments start as follows:</P> <P>-lmingw32 -lsdlmain -lsdl </P> <P>Any additional libraries can follow those.<BR></P></DIV> <DIV></DIV>>From: Jack Chen <JAC...@YA...> <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: [Dev-C++] Need help with linker error from SDL + OpenGL <DIV></DIV>>Date: Sun, 14 Dec 2003 19:22:08 -0500 (EST) <DIV></DIV>>MIME-Version: 1.0 <DIV></DIV><mailto:dev...@li...?subject=unsubscribe><mailto:dev...@li...><mailto:dev...@li...?subject=help><mailto:dev...@li...?subject=subscribe> <DIV></DIV>> <DIV></DIV>>Hi, does anyone here know how to fix this problem? <DIV></DIV>> <DIV></DIV>>I installed SDL for Dev-C++ and ran the sample program no problem, but <DIV></DIV>>when I used OpenGL in SDL there's a linker error: <DIV></DIV>> <DIV></DIV>>[Linker error] undefined reference to `SDL_main' <DIV></DIV>> <DIV></DIV>>no other errors. Does anyone know how to fix this problem? <DIV></DIV>> <DIV></DIV>>Thanks in advance for any help. <DIV></DIV>> <DIV></DIV>>JackC <DIV></DIV>> <DIV></DIV>>______________________________________________________________________ <DIV></DIV>>Post your free ad now! http://personals.yahoo.ca <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.net email is sponsored by: IBM Linux Tutorials. <DIV></DIV>>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's <DIV></DIV>>Free Linux Tutorials. Learn everything from the bash shell to sys admin. <DIV></DIV>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></mailto:dev...@li...?subject=subscribe></mailto:dev...@li...?subject=help></mailto:dev...@li...></mailto:dev...@li...?subject=unsubscribe></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMBEN/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html> |