This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error with iostream.h
- From: Alexandre Courbot <alexandrecourbot at linuxgames dot com>
- To: Richard James Lewis <Richard dot Lewis at uea dot ac dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 11 Jul 2002 16:31:38 +0200
- Subject: Re: Error with iostream.h
- References: <Pine.OSF.4.05.10207111503330.370211-100000@cpca4.uea.ac.uk>
> 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