This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: build and usage on solaris 8
- To: Bruno dot Voigt at ic3s dot de
- Subject: Re: build and usage on solaris 8
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 4 Apr 2000 00:41:19 +0200
- CC: bkoz at cygnus dot com, libstdc++ at sourceware dot cygnus dot com
- References: <OFC8C666C4.5028632F-ONC12568B6.0078B801@ic3s.de>
> with g++ -fhonor-std test.cpp
> or g++ -fhnor-std -L/usr/local/lib/libstdc++.a test.cpp
[...]
> what's next missing (step by step..) ?
First, correct your linker line (hint: read the documentation for -L).
Next, make sure the library you intend to link really has the symbols.
For example 'nm libname.a|c++filt|grep terminate' should show
'std::terminate' as a defined symbol.
Third, make sure it is really picking up the library you want to link.
Use g++ -v to find out the linker line. If using GNU ld, -Wl,--verbose
will show the libstdc++ selected. If not using GNU ld, do strace/truss
on the linker to find out which library it opens (alternatively, find
the equivalent of GNU ld's --verbose option).
Regards,
Martin