News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Error when building

Started by Cheshire, February 28, 2009, 01:10:27 AM

Previous topic - Next topic

Cheshire

Operating System: Windows Vista

The error returned from trying to build my Hello world! program is this when I click build-

C:\Program Files\CodeBlocks\Hello world.cpp:1:20: no include path in which to search for iostream

ollydbg

Welcome to this forum!

Which version of Code::Blocks? Which Compiler?

Why to use a file named HelloWorld.cpp  or Hello_World.cpp. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Cheshire

#2
Quote from: ollydbg on February 28, 2009, 02:48:28 AM
Welcome to this forum!

Which version of Code::Blocks? Which Compiler?

Why to use a file named HelloWorld.cpp  or Hello_World.cpp. :D

Ah yes, sorry.

Compiler: Default (i think this is the GNU CCC Compiler or something like that)
Version: 8.02
I used Helloworld.cpp as a test file to see if it would work.

C:\Program Files\CodeBlocks\Hello world.cpp|1|no include path in which to search for iostream|
C:\Program Files\CodeBlocks\Hello world.cpp||In function `int main()':|
C:\Program Files\CodeBlocks\Hello world.cpp|5|error: `cout' was not declared in this scope|
||=== Build finished: 2 errors, 0 warnings ===|