This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
re: GCC 4.0.1 - iostream: No such file or dir....
- From: dank at kegel dot com
- To: gcc at gcc dot gnu dot org
- Cc: cgarrett at degarrah dot com
- Date: Sat, 6 Aug 2005 11:49:23 -0400 (EDT)
- Subject: re: GCC 4.0.1 - iostream: No such file or dir....
Chris Garrett <cgarrett@degarrah.com> wrote:
> main.cpp:5: error: 'cout' was not declared in this scope
This question should have been sent to gcc-help, not here.
But as long as I'm answering:
It's std::cout now, according to the C++ standard.
If you want to compile old code that wasn't aware of std,
you can stick
using namespace std;
at the top.