freebsd at edvax.de
Tue Oct 23 16:44:47 UTC 2012
On Tue, 23 Oct 2012 17:35:45 +0330, s m wrote:
> thanks for your quick reply. you know, i want to add studio.h header but
> the below error occurs: "no such file or directory". i am sure that
> studio.h locates in usr/src/include but that error occured. if i write the
> full path of studio.h in ipfw file and then compile it, another error
> happened. do you know how i could fix it? thanks
The normal inclusion
should be sufficient. However, if you make your change to
ipfw in the /usr/src tree, calling "make" might default to
a different path for obtaining headers, i. e. use them from
within the src/ tree.
The system defaults to several paths, in one of them stdio.h
should be defined no matter what build command you use.
/usr/include/stdio.h is the default file. /usr/include will
be automatically used unless you change a compiler option
/usr/src/include/stdio.h the file used when building stuff
from source. This would be the case (if I remember correctly)
when you call "make" from /usr/src/sbin/ipfw directly. As
ipfw (unaltered) also includes headers "next to" stdio.h,
it shouldn't be a problem. You can compare this to other
#include preprocessor commands found in ipfw's main.c.
Final note: If you did actually use the name "studio.h" - that
is a typo. There is no "u" in "standard I/O". :-)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions