Author Topic: Windows mingw or Code::Blocks issue - redeclaring function  (Read 195 times)

Offline yip

  • Single posting newcomer
  • *
  • Posts: 1
Windows mingw or Code::Blocks issue - redeclaring function
« on: October 14, 2017, 04:41:13 am »

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