http://bugs.winehq.org/show_bug.cgi?id=4956
------- Additional Comments From qingdao33122@yahoo.com 2006-16-04 01:39 ------- I've patched msvcrt and compiling in IDEs lik GLBasic should work now.
To compile from command line, you have to set several environment variables with regedit.
Do a Google mingw GCC_EXEC_PREFIX
Environment variables are at location HK_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment