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] |
[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]
Try adding -E and see what the preprocessed source looks like. I'd guess you're using newlib, and there's something funky with newlib's headers. I never have used newlib, so I wouldn't know. What version of gcc and newlib are you using? - Dan
------ 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] |