cc compile error

1997-03-15 Thread Ken Gaugler
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...


Re: cc compile error

1997-03-15 Thread Seth Reinosa

On Sat, 15 Mar 1997, Ken Gaugler wrote:

 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...
 


1) it would help to see the code.
2) examples  stdio.h This means the file is where the compiler is at
stdio.h the quotations mean that the file is in the same dir
you are in
 (this is assuming yu are writing in c)
3) if you are using gnu compiler try gcc -g -o newname oldname.c
where the old name is the name of the file you are working with (notice
the extension) and new name is the name of the file after compiling
(notice no extension)

Bonne Chance!
Good Luck!
Buena Suerte!
[EMAIL PROTECTED]
http://home.eznet.net/~seth
Thanx
and may God Bless you
Seth R


Re: cc compile error

1997-03-15 Thread Michel Beland
 
 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

Install the devel/libc5-dev corresponding to your installed version of
base/libc5 and your problem will be solved.

--
Michel Beland [EMAIL PROTECTED]
professionnel de recherchetel: (514)369-5223  fax: (514)369-3880
CERCA (CEntre de Recherche en Calcul Applique)
5160, boul. Decarie, bureau 400(423), Montreal (Quebec), Canada, H3X 2H9


Re: cc compile error

1997-03-15 Thread psiko
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