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.
t0xic
Member
Posts: 216 Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:
Post
by t0xic » Sun Jun 10, 2007 10:47 am
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
Posts: 200 Joined: Wed Oct 18, 2006 5:49 am
Post
by nick8325 » Sun Jun 10, 2007 10:54 am
You're using itoa (on line 33) before defining it (on line 164). Add a declaration before line 164 (maybe in a header file).
t0xic
Member
Posts: 216 Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:
Post
by t0xic » Sun Jun 10, 2007 11:00 am
Thanks,
Can't believe I didn't realize that!
--t0xic