My codeblock does not run c++ program -
i beginner. codeblock runs c program.but not run c++ program. hello world. shows error:
"fatal error iostream: no such file or directory"
i tried simple codes:
#include <iostream> using namespace std; int main() { cout << "hello world!" << endl; homecoming 0; }
it appears problem codeblocks compiling c++ c program.
please following:
1) create sure you've installed compatible c++ compiler:
http://wiki.codeblocks.org/index.php?title=installing_a_supported_compiler
2) create sure you've saved file in project ".cpp" (c++ source file)
3) can search filesteam "iostream". example, msvc puts here on windows hard drive:
d:\program files (x86)\microsoft visual studio 11.0\vc\include
4) sounds you're next these instructions:
http://wiki.codeblocks.org/index.php?title=creating_a_new_project
if you're still having problems, please specify platform you're on (windows? linux?) , compiler you're using (g++? msvc?)
c++ codeblocks
No comments:
Post a Comment