This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17694] g++ fails to link libstdc++ when linking libraries only
- From: "psfales at lucent dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2004 15:41:35 -0000
- Subject: [Bug c++/17694] g++ fails to link libstdc++ when linking libraries only
- References: <20040927153520.17694.psfales@lucent.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From psfales at lucent dot com 2004-09-27 15:41 -------
Sorry, my cut/paste wasn't quite right in the original report. To clarify,
this works:
$ g++ tst.cpp -o tst
But this does not:
$ g++ -c tst.cpp
$ ar r libtst.a tst.o
$ g++ -L. -ltst -otst
Is this a bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17694