User forums > Help

#include <iostream> NO such File or Directory

<< < (2/11) > >>

shiguy48:
yes i am using ming could somebody tell step by step lol what to do im lost when it comes to all this

a wierd thing is it did for a few programs but doesnt work no so if someone can help me i will be
very apprective

thx

shiguy48:
i tryed reinstalling it but i didnt seem to work any more ideas peeps

any more help would be extremely helpful

Zantetsken:
Sorry to bump an ancient topic, but it was at the top of the list on Google when I searched iostream codeblocks. I was having the same problem and hoped to find a solution, but there was none to be found. All your "MinGW" and "GCC" just confused the hell out of me since I'm completely new to C++ and have no idea what anything is.


The solution is to put your .c file in the same folder you have Code::Blocks installed in. I originally had test.c on my desktop and got the same error shiguy48 did, but it worked perfectly fine when I moved it to C:\Program Files\CodeBlocks and tried it from there.

stahta01:

--- Quote from: Zantetsken on November 01, 2009, 07:16:12 am ---Sorry to bump an ancient topic, but it was at the top of the list on Google when I searched iostream codeblocks. I was having the same problem and hoped to find a solution, but there was none to be found. All your "MinGW" and "GCC" just confused the hell out of me since I'm completely new to C++ and have no idea what anything is.


The solution is to put your .c file in the same folder you have Code::Blocks installed in. I originally had test.c on my desktop and got the same error shiguy48 did, but it worked perfectly fine when I moved it to C:\Program Files\CodeBlocks and tried it from there.

--- End quote ---

FYI:

C++ files are required to have the extension .cpp when using Code::Blocks.

Tim S.

TDragon:

--- Quote from: Zantetsken on November 01, 2009, 07:16:12 am ---All your "MinGW" and "GCC" just confused the hell out of me since I'm completely new to C++ and have no idea what anything is.

--- End quote ---
A word of advice, then -- RTFM. Read everything, in fact, because right on the Code::Blocks download page it says:


--- Quote ---NOTE: The codeblocks-8.02mingw-setup.exe file includes the GCC compiler and GDB debugger from MinGW.

--- End quote ---

That makes it fairly clear.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version