delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/29/16:45:57

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 29 Mar 2004 16:45:37 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Hans Horn <hannes AT 2horns DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: problems compiling/linking c++ sources [FAQ alert]
In-Reply-To: <c4a4pk$bv0$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.56.0403291643440.19481@slinky.cs.nyu.edu>
References: <1080577821 DOT 40684f1dcf701 AT www DOT gobernalia DOT com> <c4a4pk$bv0$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 29 Mar 2004, Hans Horn wrote:

> Group,
>
> I'm trying to compile/link some c++ source.
>
> This is what I get:
> /usr/include/c++/3.3.1/iostream:92: undefined reference to `__static_initialization_and_destruction_0(int, int)'
> collect2: ld returned 1 exit status
>
> The last time I compiled/linked the same sources successfully was around May
> 2003 (under the cygwin vintage current for that era - whatever it may have
> been).
>
> Output of "cygcheck -svr > cygchek.out 2>&1" is attached.
>
> thx a bunch,
> H.

Use 'g++' to link C++ sources.  If you are using 'g++', please provide a
small testcase that reproduces the problem and the exact command you used
to compile/link it.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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