This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Compiling Window Source Code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]