delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/29/17:44:34

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
Message-ID: <000b01c415df$52524470$84150109@almaden.ibm.com>
From: "Hans Horn" <hannes AT 2horns DOT com>
To: "Cygwin List" <cygwin AT cygwin DOT com>
References: <1080577821 DOT 40684f1dcf701 AT www DOT gobernalia DOT com> <c4a4pk$bv0$1 AT sea DOT gmane DOT org> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040329164658 DOT 036a21f8 AT 127 DOT 0 DOT 0 DOT 1>
Subject: Re: problems compiling/linking c++ sources
Date: Mon, 29 Mar 2004 14:43:56 -0800
MIME-Version: 1.0

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 AT cygwin DOT com>
To: "Hans Horn" <hannes AT 2horns DOT com>; <cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019