Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: dpd2cm on January 03, 2012, 01:11:03 am
-
I'm taking a C++ tutorial and I loaded Codeblocks as part of the class. I am trying to compile a basic program and keep getting this error and can not figure out why.
#include <iostream>
int main()
{
std::cout << "Solidum petit in profundis!\n";
return 0;
}
Erorr: ScriptConsole line = (1) column = (9) : error end of statement expected (; or lf)
Please help!
-
Are you by any chance trying to type in the Scripting Console? See if the wiki-page Creating a new project (http://wiki.codeblocks.org/index.php?title=Creating_a_new_project) helps.
Your code belongs in the main editor:
(http://www.codeblocks.org/images/stories/imagebrowser/thumb/scr1.png) (http://www.codeblocks.org/images/stories/imagebrowser/scr1.png)