This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: problems compiling/linking c++ sources [FAQ alert]
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Hans Horn <hannes at 2horns dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 29 Mar 2004 16:45:37 -0500 (EST)
- Subject: Re: problems compiling/linking c++ sources [FAQ alert]
- References: <1080577821.40684f1dcf701@www.gobernalia.com> <c4a4pk$bv0$1@sea.gmane.org>
- Reply-to: cygwin at cygwin dot com
On Mon, 29 Mar 2004, Hans Horn 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.
>
> thx a bunch,
> H.
Use 'g++' to link C++ sources. If you are using 'g++', please provide a
small testcase that reproduces the problem and the exact command you used
to compile/link it.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
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/