LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2008, 08:22 PM   #1
ayomi8175
LQ Newbie
 
Registered: Jan 2008
Location: Kandy
Distribution: Ubuntu 7.10
Posts: 6

Rep: Reputation: 0
Unable to compile c files in ubuntu 8.04


Dear all,

can you do me little favor for me.I tried to compile a c file in ubuntu 8.04 platform.I got error like this

first.c:1:18: error: stdio.h: No such file or directory
first.c: In function ‘main’:
first.c:5: warning: incompatible implicit declaration of built-in function ‘printf’

I could nt fix that error.

thanks
 
Old 11-03-2008, 08:30 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You need to install the development files for "libc":

apt-get install libc6-dev

I find it rather amusing that the compiler depends on "libc6" but not on its development files - then again if you're building a kernel you don't need the libc6 development files, so the dependencies are technically correct even if in reality most people (if not all) would also want to build executable code other than the kernel.
 
  


Reply



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
unable to view files by files when ls in text mode jenson Linux - Server 2 06-20-2008 07:57 AM
Unable to compile Apache 2 Shinji62 AIX 5 03-24-2007 05:49 AM
unable to view .vsd files (Visio Files) mr_manny Linux - General 5 11-30-2006 07:03 PM
unable to compile source files Hallowedpoint Linux - Newbie 6 11-19-2005 08:02 AM
unable to compile .exe files under KDevelop stealthgate Linux - Software 2 09-16-2005 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:36 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