Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 19 Nov 2002 17:34:13 +0100
From: Markus Gerwinski <markus@gerwinski.de>
To: cygwin@cygwin.com
Cc: peter@gerwinski.de
Subject: Re: Conflict between libcygwin.a and GCC core libraries
Message-ID: <20021119163413.GA5773@leia.local>
References: <20021119160845.GC4923@leia.local> <005801c28fe7$99b309a0$78d96f83@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/

