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
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@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Hans Horn <hannes@2horns.com>
cc: cygwin@cygwin.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.40684f1dcf701@www.gobernalia.com> <c4a4pk$bv0$1@sea.gmane.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/

