Code::Blocks issue with 'errors'

Hello!

I have a problem with the IDE Code::Blocks. The problem is, that I copied an entirely valid code from one of your tutorials, yet it says 'there is no such directory as '<iostream>', and other things. Does anyone have an idea what I am doing wrong, or are the settings not right? It won't even run.

Screenshot: http://imgur.com/XC2bQ

I did already Google it, look at the Code::Blocks wiki, and read the first page of the search command 'Code::Blocks', but to no avail.

Thanks in advance!
closed account (zb0S216C)
You're trying to compile it as a C source. Change it to compile as a C++ source( change the file extension to .CPP ).

Wazzak
Ah, thanks.

Is there anyway to do this automatically? It seems to automatically save as an C file.
closed account (zb0S216C)
When you save the file for the first time, add .CPP at the end of the file name.

Wazzak
Last edited on
Oh, I got another problem. I don't understand an error, and strangely, the Code::Blocks wiki doesn't seem to have a page on it... Oh well.

Here's the screenshot: http://imgur.com/geULj

Thanks in advance.

Edit: It has been resolved, people from other sites helped me.
Last edited on
Topic archived. No new replies allowed.