I was hoping someone could help me. I get a bunch of annoying error messages when I try to compile a program
C:\Users\Public\Documents\C++ Shizzle\main.cpp In function 'int main(int, char**)':
6 1 C:\Users\Public\Documents\C++ Shizzle\main.cpp [Error] 'cout' was not declared in this scope
6 1 C:\Users\Public\Documents\C++ Shizzle\main.cpp [Note] suggested alternative:
1 0 C:\Users\Public\Documents\C++ Shizzle\main.cpp In file included from main.cpp
62 18 c:\program files (x86)\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.7.1\include\c++\iostream [Note] 'std::cout'
It won't recognize either namespace std or cout, or any other user library for that matter. What do I do to get it to let me compile a program?
1. Please show a bit of code so we know what's producing the error.
2. If it's a compiler error concerning code, 99.6% (made up statistic) of the time it's your fault.
3. You probably have to either follow the warnings advice (use std::cout, not cout) or declare that you're using the namespace at the top (using namespace std;).
Thank you so much! It works finally. And sorry for the quasi-snittiness of my previous posts. Finding helpful documentation on open source apps can be difficult at times. And not to press my luck, I had one other question.. I know stdafx.h is windows specific, so I can't use it in Dev. Is there another library or whatever that I should put in its place, and for that matter is there anywhere I can find a 'cheat sheet' of the most commonly used libraries used in Dev source code?