libstdc++/10633: linking error with stdc++ library
Wolfgang Bangerth
bangerth@ices.utexas.edu
Tue May 6 14:22:00 GMT 2003
> g++ -lc -lstdc++ -shared test.o -o test.so
There's no need for the two -l... switches. If you drop them, everything
works fine. g++ will do all this stuff for you, there's no reason to make
it more complicated than necessary!
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
More information about the Gcc-bugs
mailing list