[svlug] interesting and exotic linking error in .o files of cpp program

David N. Welton davidw at dedasys.com
Wed Nov 19 01:56:58 PST 2003

Joe Buck <jbuck at synopsys.com> writes:

> > That's C++ code and you are using a C compiler.  You should use
> > g++ and see how it goes...

> No, he used a C++ compiler (gcc uses its C++ compiler to compile a
> file with an extension of .cpp).

And a Java compiler, and a....  gcc compiles a lot of things, sure
(it's not a C Compiler, but a Compiler Collection after all), but g++
is the "C++ compiler" in that it takes care of creating an executable
from C++ code.

David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

More information about the svlug mailing list