LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-23-2006, 05:05 AM   #1
michael.cosmas
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
What package has simple functions like printf & malloc?


Hi. I just installed Ubuntu and tried to compile something using gcc compiler. this is what I got:

Code:
gcc -Wall -g -c cli_fragment.c -o cli_fragment.o
cli_fragment.c:1:19: error: stdio.h: No such file or directory
cli_fragment.c:2:20: error: malloc.h: No such file or directory
cli_fragment.c:3:20: error: string.h: No such file or directory
cli_fragment.c: In function ‘frag_receive_data’:
cli_fragment.c:36: warning: implicit declaration of function ‘malloc’
cli_fragment.c:36: warning: incompatible implicit declaration of built-in function ‘malloc’
cli_fragment.c:44: error: ‘NULL’ undeclared (first use in this function)
cli_fragment.c:44: error: (Each undeclared identifier is reported only once
cli_fragment.c:44: error: for each function it appears in.)
cli_fragment.c:59: warning: implicit declaration of function ‘free’
cli_fragment.c:64: warning: implicit declaration of function ‘printf’
cli_fragment.c:64: warning: incompatible implicit declaration of built-in function ‘printf’
cli_fragment.c:78: warning: implicit declaration of function ‘bzero’
cli_fragment.c:78: warning: incompatible implicit declaration of built-in function ‘bzero’
cli_fragment.c:79: warning: implicit declaration of function ‘memcpy’
cli_fragment.c:79: warning: incompatible implicit declaration of built-in function ‘memcpy’
cli_fragment.c:87: warning: incompatible implicit declaration of built-in function ‘memcpy’
cli_fragment.c:99: warning: incompatible implicit declaration of built-in function ‘bzero’
cli_fragment.c:100: warning: incompatible implicit declaration of built-in function ‘printf’
cli_fragment.c:106: warning: incompatible implicit declaration of built-in function ‘memcpy’
cli_fragment.c: In function ‘frag_send_data’:
cli_fragment.c:132: warning: incompatible implicit declaration of built-in function ‘memcpy’
cli_fragment.c:142: warning: incompatible implicit declaration of built-in function ‘printf’
cli_fragment.c:149: warning: incompatible implicit declaration of built-in function ‘bzero’
cli_fragment.c:150: warning: incompatible implicit declaration of built-in function ‘memcpy’
cli_fragment.c:155: warning: incompatible implicit declaration of built-in function ‘printf’
make: *** [cli_fragment.o] Error 1
Just want to know what package I have to install which has all these function in it. thanks!
 
Old 10-23-2006, 07:18 AM   #2
nayyares
Member
 
Registered: Oct 2006
Location: JNB, SA
Posts: 33

Rep: Reputation: 15
Hi,

It seems that you d'nt have GLIBC, try to install Development Tools and the suporting libraries. Better would be if you upgrade your development tools with all GNU - LIBS, thanks
 
  


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
where is the actual code for C functions? like printf, scanf, etc purpleburple Programming 5 06-23-2006 04:49 AM
how does malloc() and free() functions work? kuna Programming 8 12-04-2004 03:59 AM
need help w/ awk & printf rickenbacherus Programming 3 05-13-2004 07:21 AM
Simple printf question AMMullan Programming 3 02-13-2004 10:12 PM

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

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