Page 1 of 1

Help with compiling (gcc-cygwin)

Posted: Sun Jun 10, 2007 10:47 am
by t0xic
Hey everyone,

While using gcc (cygwin) to compile my kernel, I often run into these errors:

Code: Select all

lib/stdio.c:164: error: conflicting types for 'itoa'
lib/stdio.c:33: error: previous implicit declaration of 'itoa' was here
Here is the command line I'm using

Code: Select all

gcc -O -w --strength-reduce --omit-frame-pointer --no-leading-underscore --inline-functions -nostdinc --no-builtin -c *.c
Could someone tell me what I'm doing wrong?

Thanks,

--t0xic

Posted: Sun Jun 10, 2007 10:54 am
by nick8325
You're using itoa (on line 33) before defining it (on line 164). Add a declaration before line 164 (maybe in a header file).

Posted: Sun Jun 10, 2007 11:00 am
by t0xic
Thanks,

Can't believe I didn't realize that!

--t0xic