Cygwin GCC help

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:

Cygwin GCC help

Post by t0xic »

Hey everyone,

I've been using djgpp for a while and decided that it's finally time to switch to cygwin.

When I compile some of my files I get the following error:

Code: Select all

drivers/video.c:92: error: conflicting types for 'putc'
drivers/video.c:56: error: previous implicit declaration of 'putc' was here

drivers/timer.c:60: error: conflicting types for 'timer_wait'
drivers/timer.c:56: error: previous implicit declaration of 'timer_wait' was here

etc, etc

Why is this happening? it worked in djgpp (is that because djgpp sucks?)

Thanks,

--t0xic
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

No, it seems to me that it is because you either haven't included a required header or you have tried to use both your own internal stdlib functions *and* the gcc built in ones.

I would say the first option is more likely - the compiler is using the actual implementation of putc as the declaration of putc...

Cheers,
Adam
Post Reply