Re: [Dev-C++] How do I call a Windows function?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Andrew S K. (tb) <aka...@gm...> - 2009-05-15 13:56:39
|
Replying to my own thread to say I found the answer. It is simple - http://www.uniqueness-template.com/devcpp/ This site tells me: # Go to "Project" menu and choose "Project Options" (or just press ALT+P). # Go to the "Parameters" tab # In the "Linker" field, enter the following text: -lgdi32 Andy Andrew S Katz (tb) said the following on 5/14/2009 11:40 PM: > My program has the following: > > #include <windows.h> > > And later on, > LineTo( hDC, sx+2, sy+h+2 ); > > And when I link, I get the error: > [Linker error] undefined reference to `LineTo@12' > > NOTE: I am creating my own DLL and I want it to access the Windows DLL. > > A. K. > > |