This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/10633: linking error with stdc++ library
- From: Wolfgang Bangerth <bangerth at ices dot utexas dot edu>
- To: Philip Cheng <cheng at pcigeomatics dot com>
- Cc: gcc-bugs at gcc dot gnu dot org, <gcc-prs at gcc dot gnu dot org>, <nobody at gcc dot gnu dot org>, <gcc-gnats at gcc dot gnu dot org>
- Date: Tue, 6 May 2003 09:22:03 -0500 (CDT)
- Subject: Re: libstdc++/10633: linking error with stdc++ library
> 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/