Re: GCC vs G++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<Dhiraj.Nilange@xxxxxxxxxxxxxxxxxx> writes:

> I am using Linux. I am not still sure about the difference between g++
> and gcc. Is g++ just a wrapper for gcc? I am not sure which one I should
> use
> for compiling my C++ codes?

g++ is very similar to gcc.  The main difference is that g++ assumes
that it is compiling C++ (gcc will compile C++ for files ending in
".cc", ".C", etc.), and g++ always links against the standard C++
library.

When compiling C++ you should use g++ in all normal cases.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux