delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/19/11:37:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <markus AT gerwinski DOT de>
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
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/

- Raw text -


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