Author Topic: Please help with using header files "no such file or directory"  (Read 2215 times)

Offline icewizard

  • Single posting newcomer
  • *
  • Posts: 7
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?

Offline icewizard

  • Single posting newcomer
  • *
  • Posts: 7
Re: Please help with using header files "no such file or directory"
« Reply #1 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12908
    • Travis build status
Re: Please help with using header files "no such file or directory"
« Reply #2 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!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Please help with using header files "no such file or directory"
« Reply #3 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.