Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199909271926.OAA11582@mercury.xraylith.wisc.edu> To: Corrwar AT aol DOT com cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Compiling Window Source Code In-Reply-To: Your message of "Sat, 25 Sep 1999 16:04:20 EDT." Date: Mon, 27 Sep 1999 14:26:42 -0500 From: Mumit Khan Corrwar AT aol DOT 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 AT 4' and "bailled out" Did you add -mwindows when linking? GetStockObject AT 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 AT sourceware DOT cygnus DOT com