Discussion:
WARNINGS, implicit declaration
(too old to reply)
Hammad Imad
2004-02-08 01:48:08 UTC
Permalink
Hi

I compalied my program and im getting 3 warnings

implicit declaration of function 'malloc'
implicit declaration of function 'exit'
implicit declaration of function 'abs'

I have use all of these in my program, but to my knowledge we were
supposed to use malloc, ( i didnt use exit but im guessing its in malloc)
as for abs function i thought the makefile was adjusted so that we could
use math functions.

How can i fix this?
Diego Huang
2004-02-08 02:52:02 UTC
Permalink
You need to include the stdlib.h and math.h libraries.

Diego
Date: Sun, 8 Feb 2004 01:48:08 GMT
Newsgroups: ut.ecf.ece242
Subject: WARNINGS, implicit declaration
Hi
I compalied my program and im getting 3 warnings
implicit declaration of function 'malloc'
implicit declaration of function 'exit'
implicit declaration of function 'abs'
I have use all of these in my program, but to my knowledge we were
supposed to use malloc, ( i didnt use exit but im guessing its in malloc)
as for abs function i thought the makefile was adjusted so that we could
use math functions.
How can i fix this?
Loading...