Gcc/Headers
I'm trying to compile some packages by my own,
I get an error "dir.h no such file or directory" I could find that header (and some others) under /usr/include/sys directory but the compile doesn't seek for that, on the package file I try to compile I see "#include <sys/dir.h>" how do I make the compiler look into /usr/include/sys ? thanks. |
Help us in trying to help you mate :)
What package, how are you compiling it? Cheers, Tink |
daemontools (required by tinydns)
I just get an error "dir.h no such file" although this file exists under /usr/include/sys :) thanks. |
Never seen those ... now, are you getting that error
from running make, are you firing up the compiler manually? If it's from a Makefile, the first thing to check would be whether the appropriate path(s) to includes is/are set .... look at your Makefile and locate -I, or a variable called INCLUDE. Cheers, Tink |
What tells the compile to look into /usr/include or any other include directories by default?
when you specify in the source code include <aaa.h> where the compile look by default? (if you'r not specifying the -I) by the way, did you ever use daemontools? |
By default it should look in /usr/include,
if the source has an include directive like #include <sys/dir.h> the compiler should find /usr/include/sys/dir.h If it doesn't, you need to pass this information to the compiler via Code:
-I /usr/include And you still haven't told me HOW you're trying to compile them. Cheers, Tink |
you just run an install script, which calls another script that calls another one :) I have to look inside the code and try to manage that, anyway, your information helped me much, I'll try to solve that prob :)
thanks a lot. |
All times are GMT -5. The time now is 08:13 PM. |