Hi, I had a similar "undefined reference" link problem due to not being =
able to specify g++ as the linker.
A workaround that solved my problems was to explicitly link in the =
standard c++ library in the following way:
This should be safe since g++ is just a script which calls gcc with =
options to recognize c++.
Hope this helps.
From: s_ludwig@... [mailto:s_ludwig@...]
Sent: 21. n=F3vember 2002 10:44
Subject: [Ant-contrib-developers] Link fails with g++/gcc
I have a Problem using the cctask to build an
executable from C++ code under Linux.
The linkage fails, and it seems the reson is that
the cctask calls gcc instead of g++ to do the linking.
I have created a simple example with just two .cc
and one .h file to present the problem.
Please have a look in the Support-section on the
sourceforge site. I submitted a detailed description
of the problem plus an excerpt from the build.xml there.
( Request-ID 641559, "Link fails with g++/gcc" )
I need help on this and I'd very much appreciate
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f=FCr 1 ct/ Min. surfen!
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
Ant-contrib-developers mailing list
Get latest updates about Open Source Projects, Conferences and News.