This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

cheers,
Hans

----- Original Message ----- 
From: "Larry Hall" <cygwin-lh@cygwin.com>
To: "Hans Horn" <hannes@2horns.com>; <cygwin@cygwin.com>
Sent: Monday, March 29, 2004 1:47 PM
Subject: Re: problems compiling/linking c++ sources


> At 04:34 PM 3/29/2004, you 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.
>
>
> Do you google?
>
>
<http://www.google.com/search?as_q=&num=10&hl=en&ie=UTF-8&oe=UTF-8&btnG=Goog
le+Search&as_epq=__static_initialization_and_destruction_0&as_oq=&as_eq=&lr=
&as_ft=i&as_filetype=&as_qdr=all&as_nlo=&as_nhi=&as_occt=any&as_dt=i&as_site
search=cygwin.com&safe=images>
>
>
> --
> 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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]