This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __static_initialization_and_destruction_0(int, int) missing
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: Michael Sögtrop <MSoegtrop at yahoo dot de>
- Cc: "'Gcc-Develop'" <gcc at gcc dot gnu dot org>
- Date: Sun, 23 Nov 2003 03:21:15 +0100
- Subject: Re: __static_initialization_and_destruction_0(int, int) missing
- Organization: Esse keine toten Tiere
- References: <000d01c3b118$af088b10$0302a8c0@soegtrop1>
- Reply-to: "Gerrit P. Haase" <gp at familiehaase dot de>
Guten Tag Michael Sögtrop,
am Samstag, 22. November 2003 um 17:50 schrieben Sie:
MS> Hello,
MS> compiling a medium size open source project on a pretty recent Cygwin
MS> using gcc 3.3.1, i get tons of linker errors, that an compiler internal
MS> function called __static_initialization_and_destruction_0(int, int) is
MS> missing. I couldn't find any documentation for this function, if it is a
MS> generated or library function, and in which library it sits or when it
MS> is
MS> generated.
MS> Many thanks for your help.
MS> Best regards,
MS> Michael Sögtrop
MS> P.S.: I posted this already at gcc-help. Sorry for reposting it here,
MS> but there doesn't seem to be much traffic at gcc-help.
What do you try to compile? Have you tried a google search with topic
'__static_initialization_and_destruction_0', it shows that this was
aleady reported several times. It also was discussed at the cygwin
mailing list, please see the archives, i.e. these postings:
http://www.cygwin.com/ml/cygwin/2003-07/msg00463.html
http://www.cygwin.com/ml/cygwin/2003-07/msg00589.html
In short, it seems that
#pragma interface
doesn't work and commenting it let you compile the code. I always
comment also
#pragma implementation
but it seems the it is enough to comment out #pragma interface.
Though, I'm seeking for someone to shed light on this, why it is not
working on Cygwin?
--
Mit freundlichen Grüssen
Gerrit P. Haase
mailto:gp@familiehaase.de