This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: __static_initialization_and_destruction_0(int, int) missing


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


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