delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/18/00:22:15

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
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Tim Prince <tprince AT computer DOT org>
Reply-To: tprince AT computer DOT org
To: "Christopher Currie" <christopher AT currie DOT com>, cygwin AT cygwin DOT com
Subject: Re: C++ link errors using gcc from cvs
Date: Sun, 17 Mar 2002 21:17:52 -0800
X-Mailer: KMail [version 1.3.1]
References: <20020317203433 DOT 20986 DOT c000-h009 DOT c000 DOT wm AT mail DOT currie DOT com DOT criticalpath DOT net>
In-Reply-To: <20020317203433.20986.c000-h009.c000.wm@mail.currie.com.criticalpath.net>
MIME-Version: 1.0
Message-Id: <20020318051754.A69DF2CC48@inet1.ywave.com>

On Sunday 17 March 2002 20:34, Christopher Currie wrote:
> I recently installed gcc from cvs, since I understand people have had
> success with it, pretty much out of the box. I'm getting link errors
> compiling trival C++ programs, with both my local g++ and the Cygwin
> standard g++. I can overcome these errors if I explicitly link the right
> copy of libstdc++.a into the application, as demonstrated in the examples
> below.
>
> Can gcc 2.95 and gcc 3.x not coexist? I'm guessing it's either that or I
> installed gcc incorrectly somehow, but I'm not sure where I went wrong. Any
> help or direction would be appreciated.
>
> Christopher
>
I thought everyone recognized that mixing c++ libraries between gcc-3.1 and 
gcc-2.95 was even less likely to work than between gcc-3.0x and 2.95.  Even 
the use of 2.95 with non-default stack alignment is enough to break the 
libraries which come with it, and commercial compilers which aim at a degree 
of gcc compatibility don't try to mix libraries.  Yes, it's easy to break the 
cygwin g++/g77 installation by a parallel installation of gcc-3.1, even with 
the best of intentions, but each compiler should default to its own copy of 
libstdc++, if you install them normally in separate directories.
-- 
Tim Prince

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