no such file or directory

so i am trying to run a simple hello world program for a first time, i used the example on this site, but when i go to build it, using code blocks with MinGW, it tells me on line 3 error: iostream: no such file or directory.
my line three is this #include <iostream>
am i doing something wrong or does code blocks and MinGW not include the iostream directory?
Are you sure you made a C++ project and not, say, a C project? That will make a difference.

-Albatross
yeah its a c++ project
In that case it sounds like something got misconfigured during installation. Have you tried reinstalling Code::Blocks?

-Albatross
im about to try that. but before i do am i supposed to download the codeblocks-10.05-setup.exe file or the codeblocks-10.05mingw-setup.exe?
download codeblocks-10.05mingw-setup.exe, but before you do that make sure it's a c++ project.
If you don't specify it as a (dot)--> .cpp codeblocks automatically makes it a c project.

when you named your main file did you put nameWhatEver.cpp or nameWhatEver?
Topic archived. No new replies allowed.