I am using CodeLite and code block to learn c++. When I run any c++ program, it only shows "Press any key to continue." I downloaded MinGW compiler and also llvm-clang compiler. I select both one by one and run program. It only shows "Press any key to continue". Can anyone help me understand why it happens?
Edit:1 // Added Code
This is my sample program.
#include <iostream>
#include <string>
int main(int argc, const char * argv[]) {
std::cout << "Hello, World!";
return 0;
}
Edit:2 // For more clarification
My program runs perfectly in Xcode. But I have a problem in Windows 7 32 bit with CodeLite and code block. Consider that I have installed Compiler and also made appropriate settings suggested by code block and CodeLite website.
Why does it only show "Press any key to continue."? Is there any problem with some setting or did I forget to set an environment variable or something else?