This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: build and usage on solaris 8


> 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

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