OT: gcc warning: implicit declaration of function
Bryce Schober
bryceman@dpzone.com
Wed Oct 1 21:56:00 GMT 2003
Dan Kegel wrote:
> Try adding -E and see what the preprocessed source looks like.
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
# 1 "/usr/local/lib/gcc-lib/arm-elf/3.3/include/stdlib.h" 1 3 4
# 1 "/usr/local/lib/gcc-lib/arm-elf/3.3/include/stddef.h" 1 3 4
# 213 "/usr/local/lib/gcc-lib/arm-elf/3.3/include/stddef.h" 3 4
typedef long unsigned int size_t;
# 6 "/usr/local/lib/gcc-lib/arm-elf/3.3/include/stdlib.h" 2 3 4
# 2 "test.c" 2
int main(int argc, char *argv[])
{
int a = abs(-3);
return a;
}
> What version of gcc and newlib are you using?
gcc-3.3, newlib-1.11.0
--
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