News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Windows mingw or Code::Blocks issue - redeclaring function

Started by yip, October 14, 2017, 04:41:13 AM

Previous topic - Next topic

yip


I am not sure if this is an issue with Code::Blocks or the mingw compiler in Windows.

I have a simple c file where the main is defined at the top and the rest of the functions below. On other machines, this generates a warning about implicit declaration of functions and then an error when the actual function is encountered. No executable is produced.

On windows with mingw, I still get the warning message, but the compiler does its job and produces an executable. This is not a desired behavior. I cannot figure out under what C standard this would be acceptable

Any suggestions on debugging this?

Thank you

Yip