>Trying to make a simple "hello.c" program, I get this error message:
>
>>bash$ cc -c hello.c
>>In file included from /usr/include/stdlib.h:42,
>>                 from hello.c:4:
>>/usr/include/errno.h:27: linux/errno.h: No such file or directory
>
>
>If I look on line 27 of /usr/include/errno.h, I see that the
>compiler is indeed looking for a file called
> /linux/errno.h
>and there is indeed no such file or directory.
>
>Is there some global variable I have not set right in my system?
>How to fix this?
>
>Thanks!
>
>-- 
>Ken Gaugler  
>email: [EMAIL PROTECTED]  URL: http://www.wco.com/~keng
>"The life of a Repo Man is always INTENSE..."
>
>

Install libc5-dev package (assuming debian dist) and you should have the
standard C header files and libraries.

Note however that you may need other packages as well. In fact you should
install all the devel packages if you :-
  1. plan to compile more than just hello.c
  2. want to compile the kernel
  3. plan to debug your programs.
  4. have the hard disk space
  5. want to avoid future compiling problems

If you don't have the disk space then goto
http://www.debian.org/FTP/devel.html and sift out what you need.

Cheers
psiko

Reply via email to