build and usage on solaris 8

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Apr 3 15:45:00 GMT 2000


> 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


More information about the Libstdc++ mailing list