This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc & C++ instead of g++
- From: Mohsen Pahlevanzadeh <mohsen at pahlevanzadeh dot org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 10 Sep 2009 11:36:45 +0430
- Subject: Re: gcc & C++ instead of g++
- References: <1252561795.6184.10.camel@debian> <m3skevqp0b.fsf@google.com>
- Reply-to: mohsen at pahlevanzadeh dot org
Sorry, I'm gonna go to unsbscribe.....
On Wed, 2009-09-09 at 23:42 -0700, Ian Lance Taylor wrote:
> Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> writes:
>
> > How do i write C++ with gcc instead of g++?
>
> The question is not appropriate for the mailing list gcc@gcc.gnu.org.
> It is appropriate for gcc-help@gcc.gnu.org. Please take any followups
> to gcc-help. Thanks.
>
> There is no particular reason to use gcc instead of g++. If you really
> want to do so, there are two easy ways: 1) name your files with an
> extension of .cc rather than .c; 2) use the -x c++ option. Note that if
> you link with gcc, you will need to explicitly use -lstdc++.
>
> Ian