No such file or directory, but the directory is in the path
Hello, I am compiling a program with make, but I get a No such file or directory error, but the file is in the path directory.
I have this #include "gene.h", this file is in / home / myuser / toolbox / lib / genalg directory, and in PATH I have ...: / home / myuser / toolbox / lib / genalg, so I don't understand why make cannot find the library. Any ideas?. Thanks to
The shell path has nothing to do with how compilation works, related paths are the library path (-L option on gcc) where the compiler looks for libraries and the include path (-I option on gcc) which is where the compiler looks for files headers. Check this link if you are using gcc.
Enables not to use the same path that is used to search for executable files. Check the documentation on your compiler for where it is looking.