User forums > Using Code::Blocks

Please help with using header files "no such file or directory"

(1/1)

icewizard:
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?

icewizard:
this is my i.cpp with my header file that I'm trying to use in my nu.cpp file, but it wont compile.

oBFusCATed:
Please learn how c/c++ compilers work and how the compiler (preprocessor to be precise) handles #include directives.
Hint - header search path!

Jenna:

--- Quote from: 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!

--- End quote ---
And make sure the header-file is saved, this is only done automatically, if it is in the project you currently try to compile.

Navigation

[0] Message Index

Go to full version