Forcing gcc to compile c++ programs...?

Justin Miller millerj@wam.umd.edu
Mon Sep 15 20:35:00 GMT 2003


Yeah, I think I'm being required to use gcc, not g++. What would I need
to explicitly include in order to use gcc?

Justin

On Mon, 2003-09-15 at 16:31, Eljay Love-Jensen wrote:
> Hi Justin,
> 
> If it's a C++ program, are you using 'g++' instead of 'gcc'?
> 
> The 'g++' one includes all the C++ related stuff for linking, whereas 'gcc' does not.  If you wanted to use 'gcc' you have to include the C++ stuff explicitly.
> 
> --Eljay
> 
> 



More information about the Gcc-help mailing list