This is the mail archive of the
mailing list for the Cygwin project.
Re: problems compiling/linking c++ sources
Larry at al,
I google indeed - in fact, that was what I tried first.
Unfortunately, I did leave out the two leading __, as well as the trailing
This resulted in query results that were utterly irrelevant.
As to how to fix the problem: commenting out all #pragma
interface/implementation lines does indeed the trick!
Funny is that I had to insert exactly those lines to make the sources
compile/link under gcc2.9.5 back in 2001.
----- Original Message -----
From: "Larry Hall" <firstname.lastname@example.org>
To: "Hans Horn" <email@example.com>; <firstname.lastname@example.org>
Sent: Monday, March 29, 2004 1:47 PM
Subject: Re: problems compiling/linking c++ sources
> At 04:34 PM 3/29/2004, you wrote:
> >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
> >2003 (under the cygwin vintage current for that era - whatever it may
> >Output of "cygcheck -svr > cygchek.out 2>&1" is attached.
> Do you google?
> Larry Hall http://www.rfk.com
> RFK Partners, Inc. (508) 893-9779 - RFK Office
> 838 Washington Street (508) 893-9889 - FAX
> Holliston, MA 01746
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html