LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-13-2006, 08:22 PM   #1
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Rep: Reputation: 15
test.c:1:19: error: stdio.h: No such file or directory


I've so far only ever used Python and Java for programming, but recently I now have to learn C for a class. I ran into a problem while trying to compile things however. When attempting to compile a simple program such as:
Code:
#include <stdio.h>

main()
{
	printf("Hello world");
}
gcc returns the error:
Quote:
test.c:1:19: error: stdio.h: No such file or directory
test.c: In function ‘main’:
test.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
The only other thread I could find for it was for redhat and it suggested that the header files are kept in a seperate package. Is there a seperate debian package I have to install to get the C libraries?

I am using Debain Testing.
 
Old 09-14-2006, 03:11 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
You can always search yourself: http://packages.debian.org/ Did you install the dev-packages for the C enviroment you want to work in?
 
Old 09-14-2006, 12:11 PM   #3
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
I feel a fool. "libc6-dev" is the needed package in question. I'm not used to such a distinction; I assumed that if GCC was installed it'd automatically have installed the other library required to compile.

Sorry about the silly question then.
 
  


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
How to test file is a directory in shell judgex Programming 2 06-05-2006 04:25 AM
bash file test - newline is a directory? haxcess Linux - General 2 03-26-2006 11:34 AM
mkdir: cannot create directory `test': Read-only file system punt Linux - General 2 04-16-2005 09:58 PM
No stdio.h file found seesharp Linux - Newbie 1 11-19-2004 01:58 PM
test.c:1:19: Stdio.h: No such file or directory :( wogga Linux - Software 1 06-11-2004 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:43 PM.

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