LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-07-2005, 12:23 AM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Missing C header files?


I am trying to compile a program and it gives me the following error:
Code:
install-debian.c:1108:22: error: sys/stat.h: No such file or directory
install-debian.c:1109:23: error: sys/types.h: No such file or directory
install-debian..c:1111:19: error: errno.h: No such file or directory
install-debian.c:1112:19: error: stdio.h: No such file or directory
install-debian.c:1113:20: error: stdlib.h: No such file or directory
install-debian.c:1114:20: error: string.h: No such file or directory
install-debian.c:1115:18: error: time.h: No such file or directory
install-debian.c:1116:20: error: unistd.h: No such file or directory
install-debian.c: In function 'key_with_file':
install-debian.c:1182: error: array type has incomplete element type
install-debian.c:1183: error: array type has incomplete element type
install-debian.c:1189: warning: incompatible implicit declaration of built-in function 'memset'
install-debian.c: In function 'chkenv':
install-debian.c:1234: warning: incompatible implicit declaration of built-in function 'sprintf'
install-debian.c:1235: warning: assignment makes pointer from integer without a cast
install-debian.c:1239: warning: incompatible implicit declaration of built-in function 'strlen'
install-debian.c:1243: w
I have installed gcc by apt-get install gcc . I am using the testing version. How can I install the header files?

Thanks
 
Old 11-07-2005, 12:28 AM   #2
Mistro116@yahoo.com
Member
 
Registered: Sep 2005
Posts: 118

Rep: Reputation: 15
This is my first time replying to another's question but i think i know your problem.

The "Header" files you are missing are in essence library files.

In other words, the libraries that come with C are built into your language and you just
need to declare them at the top of your class that you are compiling. I noticed ur missing
stdio.h and stdlib.h, just type:

Code:
#include <stdio.h>
#include <stdlib.h>
Let me know if this helps since im kinda curious.

Mistro116
 
Old 11-07-2005, 12:42 AM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
No that's not the problem because I can compile the program on my other debian system. Thanks for the effort though.

anyone?
 
Old 11-07-2005, 04:52 AM   #4
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Go to debian.org->Debian packages->Search the contents of packages
Search for some of the missing files (stdio.h for example). Choose the correct one from the list (it shouldn't be hard to identify) and install that package with apt-get.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help installing snort: pcre header missing cynthia_thomas Linux - Networking 1 11-07-2005 11:19 AM
Missing C header for Fortune-Mod goofyheadedpunk Slackware 5 03-06-2005 06:33 PM
Fedora Core 2 test 3 missing header files WingNut Fedora 3 06-11-2004 03:14 PM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM
Missing header files installing soundcard on Knoppix 3.3 bureado Linux - Hardware 0 11-23-2003 08:07 AM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration