User forums > Help
#include <iostream> NO such File or Directory
monsto:
after jackin around with it for a while, here's the solution for the problem in the OP for codeblocks 10.05
* If you've previously installed a compiler, check the windows path statement for erroneous compiler paths. (if you don't know how, use a search engine)
* Check Settings > Compiler and debugger > Global compiler settings > Toolchain executables and verify that Compiler's installation directory is using the compiler you want it to use. if you installed MinGW with CodeBlocks, it should reflect as much. (your dirs may be diff from mine, thus no example)
* File > New > File...
* Choose C/C++ source
* Choose C++
* Name and locate your file.
* Check Add file to active project
* Click All
* Click Finish
You should now have a file in which you can paste source from a tutorial and it should compile as expected.
Leron:
Similar problem here. I have project generated by cmake which fails to build with same message. Codeblocks sees the file and i can include it in other projects. I unchecked "this is custom makefile" in the generated project properties but no effect. I am using TDM-GCC 32 on XP x64, CB 10.05
MortenMacFly:
--- Quote from: Leron on August 23, 2010, 01:24:05 am ---I have project generated by cmake which fails to build with same message.
--- End quote ---
C::B projects done with CMake are based on Makefiles. That's probably not what you want and IMHO a serious limitation of CMake. Try to convert the project top use C::B's build system instead.
Leron:
--- Quote ---Try to convert the project top use C::B's build system instead.
--- End quote ---
How can i do it? Is it possible to turn off using makefiles in code:blocks?
MortenMacFly:
--- Quote from: Leron on August 23, 2010, 08:29:05 pm ---How can i do it?
--- End quote ---
Inspect what CMake actually creates, probably turn on verbose build and then transfer the settings into C::B.
--- Quote from: Leron on August 23, 2010, 08:29:05 pm ---Is it possible to turn off using makefiles in code:blocks?
--- End quote ---
I don't quite get the question... C::B has two build systems: A native (fast) one and a one based on Makefiles. The latter is for convenience and the latter is what CMake will create. Ask the authors of CMake for support of C::B's native build system. Surely Makefiles cannot be converted "just as is" to a native C::B project. But again: If the Makefile based build works and you don't need the special features that come with the native build system of C::B (e.g. scripting) you can leave it as it is and that would be just fine and supported by C::B, too.
So neither there is a "turning off" in C::B, nor this is a limitation of C::B.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version