This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11143] New: cannot use '-V' option with g++
- From: "thomas at koeller dot dyndns dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2003 17:07:57 -0000
- Subject: [Bug c++/11143] New: cannot use '-V' option with g++
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11143
Summary: cannot use '-V' option with g++
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: thomas@koeller.dyndns.org
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
It appears to me that linking C++ code does not work when forcing a particular
compiler version by means of the -V switch, like 'g++ -V 3.3'. Apparently, the code is not
linked with libstdc++ in this case, causing lots of undefined references. The same code
compiles and links just fine if I do not use -V. I wonder if this is somehow related to the
fact that while there is a driver program named i686-pc-linux-gnu-gcc-3.3, there is no
i686-pc-linux-gnu-g++-3.3.
Workarund: do not use -V