It sounds like a problem with the installation or configuration of your compiler. Which compiler are you using? Are you able to successfully compile a simple "hello world" program?
1 2 3 4 5 6
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
I was able to complie the simple "Hello world program" first. But after I have installed MS Visuall C++ express along side Code::Blocks compilation has become a challenge.
Hey I have been able to retify this complilation problem. I had to do reinstallation of Code::blocks again after I instal MS Visual C++.
Thanks for the concern.