This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

OT: gcc warning: implicit declaration of function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]