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 [FAQ alert]


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/


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