Compiling Window Source Code
Mumit Khan
khan@nanotech.wisc.EDU
Thu Sep 30 23:42:00 GMT 1999
Corrwar@aol.com writes:
> I tried to compile a windows program at:
> http://www.cpp-programming.com/winapi/tradwin.cpp
>
> Cygwin (g++ version 2.95)
> outputted an undefined reference to 'GetStockObject@4' and "bailled out"
Did you add -mwindows when linking? GetStockObject@4 is in libgdi32.a,
which is included automatically when you add -mwindows.
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list