This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: I need help with compiling/linking c++ programs under gcc 3.0.4[UW/EE Research Computing #51]
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jeff Silverman <jeffs at kant dot ee dot washington dot edu>
- Cc: gcc at gcc dot gnu dot org, mgmeyer at kant dot ee dot washington dot edu, John Sahr <jdsahr at kant dot ee dot washington dot edu>, rrsl-help at kant dot ee dot washington dot edu
- Date: Fri, 8 Mar 2002 00:26:49 -0500
- Subject: Re: I need help with compiling/linking c++ programs under gcc 3.0.4[UW/EE Research Computing #51]
- Organization: Red Hat Canada
- References: <3C884435.37F3EDB8@rcs.ee.washington.edu> <1015564007.3078.16.camel@shadowfax> <3C88481F.4A22D3C8@rcs.ee.washington.edu>
On Thu, 07 Mar 2002, Jeff Silverman wrote:
> This worked!!!!
>
> I don't understand why. I was under the impression that the gcc would
> handle either C++ or C code? Obviously, I'm wrong. But I don't get it.
>
Yes and no. To give you a rough idea, both gcc and g++ share a
common back end (the code generator and optimizer), but they
differ in how they parse your program (the front end) and the
runtime glue that needs to be linked to generate the final
executable.
This is true for all the languages supported by GCC (Java,
Fortran, Objective C, ADA).
> And Diego, isn't after midnight in North Carolina? :-)
>
I suppose, but I don't live in NC :)
Diego.