User forums > Help
Problems with including header files.
Mythion:
Hi, i am new to the forum and new to code::blocks and i have a problem with the console app, i wrote a simple celsius to fahrenheit converter(i needed one :lol:) and i included the following headers:
--- Code: ---#include <cstdio>
#include <cstdlib>
#include <iostream>
--- End code ---
and when i used build i got these errors:
--- Code: ---cstdio: no such file or directory
cstdlib: no such file or directory
iostream: no such file or directory
--- End code ---
this happens only in console apps, what can i do to fix this problem?
kelo81:
What compiler are you using?, if you are using a nightly build, you have to link the compiler directories on the comiler configuration (the "include" path)
Mythion:
oh thanks, i forgot that.
Brain Damage:
hello i'm new too, i'm not sure where i should post this post, is feature request/help, feel free to move if needed.
i got the same error (doesn't find header's files) , the only difference is that my header file was in the same folder of my source file; now is there an option to make it to search for the header files in the project's folder too? shouldn't it does automatically? (without the need to reference them inside the include paths) if no, then i will post a feature request..
and i apologize for my bad english :P
crzysdrs:
If you want to include a file that is in your project directory just use quotation marks. The <> are reserved for libraries (located in the libraries directorys, OS dependent) whereas custom made header files should use "" with a relative path name inside to include them.
Navigation
[0] Message Index
[#] Next page
Go to full version