This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11143] New: cannot use '-V' option with g++


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


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