I have been using Dev-C++ 4, you know the one just under the BETA version. Well I finally decided to upgrade to the BETA version, so I download it and install it. Everything seems to be fine until I write a small console app that just outputs to the screen. Here is the exact code used:
Code:
#include <iostream>
#include <stdlib.h>
int main()
{
cout<<"Hello"<<endl;
system("PAUSE");
return 0;
}
And here are my errors:
Code:
C:\WINDOWS\Desktop\hello.cpp In function `int main()':
6 C:\WINDOWS\Desktop\hello.cpp `cout' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
6 C:\WINDOWS\Desktop\hello.cpp `endl' undeclared (first use this function)
What is up with that? I included iostream which defines cout and endl and Dev decides it doesn't like that code anymore. Any ideas? Is Dev configured wrong or what?