OT: gcc warning: implicit declaration of function

Bryce Schober bryceman@dpzone.com
Wed Oct 1 20:30:00 GMT 2003


Okay, I know I'm a bit off-topic here, but if you can help, that'd be 
great.  I don't understand this warning:

[shell]
$ arm-elf-gcc -g -c -Wall -o obj/test.o test.c
test.c: In function `main':
test.c:6: warning: implicit declaration of function `abs'
[/shell]


[test.c]
#include <stdlib.h>

int main(int argc, char *argv[])
{
     int a = abs(-3);

     return a;
}
[/test.c]

Thanks.

-- 
Bryce Schober
Design Engineer
Dynon Avionics, Inc.
www.dynonavionics.com

---
[This E-mail scanned for viruses by digiposs.com]


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list