Help with compiling (gcc-cygwin)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
t0xic
Member
Member
Posts: 216
Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:

Help with compiling (gcc-cygwin)

Post 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
nick8325
Member
Member
Posts: 200
Joined: Wed Oct 18, 2006 5:49 am

Post 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).
User avatar
t0xic
Member
Member
Posts: 216
Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:

Post by t0xic »

Thanks,

Can't believe I didn't realize that!

--t0xic
Post Reply