Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: icewizard on May 01, 2017, 12:55:52 am

Title: Please help with using header files "no such file or directory"
Post by: icewizard on May 01, 2017, 12:55:52 am
Every time I try to compile with my header file it says "no such file or directory" and it wont compile. Can anyone please help me fix this?
Title: Re: Please help with using header files "no such file or directory"
Post by: icewizard on May 01, 2017, 12:57:24 am
this is my i.cpp with my header file that I'm trying to use in my nu.cpp file, but it wont compile.
Title: Re: Please help with using header files "no such file or directory"
Post by: oBFusCATed on May 01, 2017, 02:00:00 am
Please learn how c/c++ compilers work and how the compiler (preprocessor to be precise) handles #include directives.
Hint - header search path!
Title: Re: Please help with using header files "no such file or directory"
Post by: Jenna on May 01, 2017, 09:46:20 am
Please learn how c/c++ compilers work and how the compiler (preprocessor to be precise) handles #include directives.
Hint - header search path!
And make sure the header-file is saved, this is only done automatically, if it is in the project you currently try to compile.