Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 19 Nov 2002 17:34:13 +0100 From: Markus Gerwinski To: cygwin AT cygwin DOT com Cc: peter AT gerwinski DOT de Subject: Re: Conflict between libcygwin.a and GCC core libraries Message-ID: <20021119163413.GA5773@leia.local> References: <20021119160845 DOT GC4923 AT leia DOT local> <005801c28fe7$99b309a0$78d96f83 AT pomello> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005801c28fe7$99b309a0$78d96f83@pomello> User-Agent: Mutt/1.3.27i Max Bowsher wrote: > > After changing some more stuff in the makefiles, compiling runs fine now, > > but linking still causes trouble. First, I got a lot of `undefined > > references' to functions as basic as `__assert'. To get rid of them, I > > included "-lcygwin" by hand into the linker options. > Aaargh! First you tell gcc to not use cygwin, then you tell it to sort-of > use cygwin. > No wonder its confused! It seemed to be the only way to avoid the undefined references I had before. I had tried some other ways, but they either didn't work at all or yielded the same result. (Explicitly linking with -lc, for example, got me the same error message; just "libcygwin.a" was replaced by "libc.a".) > Solution: Don't do that. Okay, but what else? > Do you actually intend to compile GPA for MinGW or Cygwin? To be honest, as long as I end up with a runnable gpa.exe for Windows, I dont' care... I gave it a try using Cygwin. > If Cygwin, drop the -mno-cygwin. Then GTK+-2.0 refuses to link. > If MinGW, make sure the gcc-mingw package is installed. It is, at least the binaries. Yours, Markus -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/