User forums > Help

<iostream> not found, already searched the fourm

(1/2) > >>

i3ear:
Hello, I am a C++ noob, but I am pretty sure this isn't my fault.
This is what I am trying to compile

--- Code: ---#include <iostream>
using namespace std;

int main() {
cout << "Hello World I am " <<8<< " Today!" << endl;
} ///:~

--- End code ---
This is the error I get

--- Code: ---F:\Documents and Settings\(herpderp)\Desktop\Untitled1.c:1:20: fatal error: iostream: No such file or directory

--- End code ---
I have Ming installed on the top folder of the F: drive, on my main partition, but it just won't fucking work.

I have searched the forums myself, and using the advice I reinstalled codeblockers and ming seperatly, setting the compiler directory to Ming, but to no avail.
Is it my fault is it the fault of the program? I have no idea here. :(

oBFusCATed:
Maybe you should invest some time in your search-fu.

Because you've not found our FAQ and especially this item: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F (it is mentioned in almost every such topic!).

i3ear:
Alrighty did that, now where the fuck is that log? I just keep getting the same error even though I did what the FAQ told me to do, I just got the exact same error. Oh and I also reinstalled it this time too, using the Code Blocks installer to install Ming this time, like the first time.

stahta01:
You need to read the link posted!

--- Quote ---Remember the file extension matters: *.c is compiled as C file, *.cpp is compiled as C++ file. Read more

--- End quote ---

oBFusCATed:

--- Quote from: i3ear on October 10, 2011, 01:37:12 am ---Alrighty did that, now where the fuck is that log?

--- End quote ---
Please behave yourself!
The log has the pretty strange and unusual title "Build log"  :shock:, I guess it is normal for people to not see it  8)

Navigation

[0] Message Index

[#] Next page

Go to full version