[Grml] error: linux/errno.h not found

T mlist4suntong at yahoo.com
Sat Aug 26 18:14:59 CEST 2006


Hi

I must have one fundamental step missing from setting up my compiling
environment. This is what I got when compiling a c file:

In file included from /usr/include/errno.h:36,
                 from archh.c:1637:
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
make[1]: *** [/home/tong/local/bin/archh] Error 1

I found the file "linux/errno.h" is at

  /usr/src/linux-headers-2.6.16-grml/include/linux/errno.h

$ ls -l /usr/src/linux-headers-2.6.16-grml/include/linux/errno.h
-rw-r--r-- 1 root root 1027 03-20 06:53 /usr/src/linux-headers-2.6.16-grml/include/linux/errno.h

How should I tell gcc to look for headers in
/usr/src/linux-headers-2.6.16-grml/include for all c files, the Debian way? 

thanks (and sorry for the a bit OT question).

tong





More information about the Grml mailing list