From: Wolfgang G. <wol...@ev...> - 2009-03-10 14:34:48
|
FYI, I've traccked down my problems with running 32bit executables compiled using mongw-w32-20090307 und Windows Xp x64 (SysWOW64 mode) to a bug in gethostbyname() in SysWOW64, which is tracked by the forum entry: http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/521a5524-5a5b-4de1-aec3-e12b93e25dbb/ The attached executable compiled using i686-pc-mingw32-gcc gethostbynamesample.c -O2 -l ws2_32 -o bin32/gethostbynamesample.exe runs under WinXP x86, but crashes under WinXP x64/Server 2003 x64. The bug has been fixed for Vista x64. If compiled as a 64bit excutable everything works fine, just as expected ;-) My question is: Is it possible to put write a workaround for this bug either by modifying the atrtached test code or by adapting the gcc mingw-w32 toolchain? TIA, Wolfgang |