Hi BlueHazzard - thanks for the reply. It exits properly sometimes...
Absolute minimal code will create the fault. Code blocks is version 17.12
oBFusCATed - great...
Is there really any difference (advantages?) to using cygwin vs mingw?
Thanks
If you are porting Linux/Unix code to Windows cygwin GCC is better/easier for networking related stuff.
You might wish to look at MSys2; but, till you state why you are using CygWin it is hard to help you.
Code::Blocks on windows is normally used with MinGW GCC; MinGW64 is better than mingw.org GCC in my opinion.
NOTE: Cygwin has option to install mingw GCC compiler; and, that might be a thing to try.
Tim S.