delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/27/15:28:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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."
<e4e630d7 DOT 251e84c4 AT aol DOT com>
Date: Mon, 27 Sep 1999 14:26:42 -0500
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019