|
From: <gen...@ya...> - 2004-05-27 08:21:47
|
okay, besides, you have to use -lkernel32 -luser32 in your linker options. it might be better to use the Windows application template for your program (make it a project). or go to project options and make sure you're using 'Win32 GUI' on the 'General' tab. --- wa...@wa... wrote: > On 26 May 2004 at 20:26, Brian Downing wrote: > > > I'm new to programming windows, so bear with me! > I am using the > > Dev-C++ compiler and have what I hope is a simple > problem. I am > > going over code in a game programming text and the > functions that > are > > related to GDI (MovetoEx, LineTo, > CreateSolidBrush, etc) are > showing > > as linker errors (undefined references). The > files are all open > > under the same project. I'm including windows.h. > Any suggestions? > > > You have to link the GDI library in. If it's a > standalone/non- > project file, then go to Compiler Options and add > -lgdi32 to the link > command line. If it's a project, go to Project > Options->Parameters > and add -lgdi32 to the Linker. > > In general, if you have a function or functions that > aren't getting > linked in, you can search for the function names in > the lib > directory. The file will be named something like > libgdi32.a. You > include that into the linker by adding -l and then > stripping of the > lib and the '.a'. > > BTW, if you have Windows XP, then your search > function is "broken". > Read this: > http://www.pcmag.com/article2/0,4149,1202777,00.asp > > HTH. > > Watson Davis > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the > market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the > exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ____________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |