Page 1 of 1

Cygwin GCC help

Posted: Mon May 28, 2007 6:16 pm
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

Posted: Tue May 29, 2007 1:28 am
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