Re: [HINT]: GCC vs G++ and c++11

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

 



Awesome, thanks!

On Sat, 8 May 2021, 04:25 Jonathan Wakely, <jwakely.gcc@xxxxxxxxx> wrote:

> On Fri, 7 May 2021 at 21:46, David Caul via Gcc-help
> <gcc-help@xxxxxxxxxxx> wrote:
> >
> > Hi Team,
> >
> > 1. What is the diff between gcc and g++.
> >      As in read out some article but not much clear.
>
> To a rough approximation, g++ is equivalent to gcc -x c++ -lstdc++
> i.e. it assumes input files are C++ by default (even if they have a .c
> file extension) and it automatically links to the C++ runtime library.
> If you're compiling C++, you probably want to use g++ not gcc to get
> the right defaults.
>
> > 2. Also to master c++ and its modern versions like c++ 11 etc how can i
> > start.
>
> That's off-topic here as it's not a question about GCC. The books
> referenced at
> http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#S-references
> are a good list, and the CppCoreGuidelines themselves.
>



[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