delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/19/11:21:29

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
Message-ID: <005801c28fe7$99b309a0$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Markus Gerwinski" <markus AT gerwinski DOT de>, <cygwin AT cygwin DOT com>
Cc: <peter AT gerwinski DOT de>
References: <20021119160845 DOT GC4923 AT leia DOT local>
Subject: Re: Conflict between libcygwin.a and GCC core libraries
Date: Tue, 19 Nov 2002 16:20:39 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Markus Gerwinski <markus AT gerwinski DOT de> wrote:
> I'm currently trying to compile GPA (s.
> http://www.gnupg.org/gpa.html) on Cygwin. To get it up and running,
> first of all I had to insert "-mno-cygwin
> -mms-bitfields" into the compiler options.

If you add -mno-cygwin, then you are trying to compile GPA for MinGW, not
Cygwin.

> 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!

Solution: Don't do that.

Do you actually intend to compile GPA for MinGW or Cygwin?
If Cygwin, drop the -mno-cygwin.
If MinGW, make sure the gcc-mingw package is installed.



Max.


--
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