I need help with compiling/linking c++ programs under gcc 3.0.4[UW/EE Research Computing #51]
Jeff Silverman
jeffs@rcs.ee.washington.edu
Thu Mar 7 21:14:00 GMT 2002
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
More information about the Gcc
mailing list