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] |
Chris Garrett <cgarrett@degarrah.com> wrote:Sorry about this. What criteria is there for posting to gcc vs gcc-help?
main.cpp:5: error: 'cout' was not declared in this scopeThis question should have been sent to gcc-help, not here.
But as long as I'm answering:Thanks for answering, I forgot to mention that I did try adding the namespace prefix and also the "using" statement and I get the same error.
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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |