www.digitalmars.com         C & C++   DMDScript  

c++ - win32 .lib problem

reply "core99" <core99 delite.dk> writes:
Hello
I'm trying to compile a basic Win32 GUI problem with a little GDI line
drawing.

Problem is, when I type dmc winmain.cpp GDI32.lib I get a lot of undefined
references to things like GetStockObject and so on.

Could anybody show me the right syntax?
Oct 02 2003
parent "Walter" <walter digitalmars.com> writes:
GetStockOBject is defined in \dm\lib\gdi32.lib. So I'd check if that file is
there, and that the LIB environment variable points to it.

"core99" <core99 delite.dk> wrote in message
news:blha2h$272p$1 digitaldaemon.com...
 Hello
 I'm trying to compile a basic Win32 GUI problem with a little GDI line
 drawing.

 Problem is, when I type dmc winmain.cpp GDI32.lib I get a lot of undefined
 references to things like GetStockObject and so on.

 Could anybody show me the right syntax?

Oct 02 2003