This is the mail archive of the gcc-help@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: Error with iostream.h


> I've recently installed Red Hat Linux 7.3.
> The following program won't compile with command: gcc test.cc
> test.cc:

Use g++ instead of gcc, gcc is to compile C programs, g++ for C++ ones.
Your problem is during linkage, not compilation - it might work with gcc
however if you add -lstdc++ to your compilation line, but you definitely
should use g++ instead.

Alex.
-- 
http://www.gnurou.org


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