This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I need help with compiling/linking c++ programs under gcc 3.0.4[UW/EE Research Computing #51]


Diego Novillo wrote:

> On Thu, 2002-03-07 at 23:55, Jeff Silverman wrote:
>
> > #include <fstream.h>
> > #include <iostream.h>
> >
> > int main()
> > {
> >   cout<<"hello!"<<endl;
> >   return 0;
> > }
> >
> > jeffs@kittitas /tmp/gcc-3.0.4 583 $ >>gcc ~jeffs/test.cc -o ~jeffs/test
> >
> Try compiling with 'g++' instead of 'gcc'.
>
> Diego.

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.

And Diego, isn't after midnight in North Carolina?   :-)


Many thanks,


Jeff


--
Jeff Silverman, sysadmin for the Research Computing Systems (RCS)
University of Washington, School of Engineering, Electrical Engineering Dept.
Box 352500, Seattle, WA, 98125-2500 FAX: (206) 221-5264 Phone (206) 221-5394
jeffs@rcs.ee.washington.edu     http://rcs.ee.washington.edu/~jeffs




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]