LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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

Closed Thread
 
LinkBack Search this Thread
Old 05-09-2008, 01:17 PM   #1
debianlam
LQ Newbie
 
Registered: Jan 2007
Posts: 21

Rep: Reputation: 0
gcc compiler cannot find header file stdio.h / stdlib.h


hello
i tried to compile prog.c by gcc but i had the following error :


(none):/home/user1# gcc prog.c
prog.c:1:19: error: stdio.h: No such file or directory
prog.c:2:20: error: stdlib.h: No such file or directory
prog.c: In function ‘main’:
prog.c:15: warning: incompatible implicit declaration of built-in function ‘printf’
(none):/home/user1#
help = welcome
debianlam
 
Old 05-09-2008, 02:39 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
I assume by your username that you're using debian. If so, you need to install the build-essential package.
 
Old 05-11-2008, 02:29 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compiler cannot find header file stdio.h / stdlib.h debianlam Programming 2 05-09-2008 03:33 PM
GCC wont find header files... pengu Programming 1 12-06-2006 11:31 PM
no stdio.h header tigeraven Programming 1 12-28-2005 06:35 PM
gcc won't find stdio.h .... or anything else either Thulas Programming 3 02-24-2005 12:22 AM
how to find the header files in c compiler ss100 Linux - Software 2 12-12-2004 11:04 PM


All times are GMT -5. The time now is 04:36 AM.

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
Open Source Consulting | Domain Registration