test_import calls printf in different c runtime libraries
On Windows, test import loads msvcrt.dll and then calls printf. That only works with mingw or VC6. Any newer version of VC will cause a segmentation fault since you cannot mix file handles across runtime libraries.
Patch causes test to not be run on Windows.
Updated by cfis (Charlie Savage) about 12 years ago
I tried the same approach before submitting my patch, put it doesn't work:
DL::DLError: Invalid argument
Not a very helpful error message, but it seems like you can't dynamically load msvcr90.dll (or if you can it doesn't work for me).
Also, in your logic, instead of this:
libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/, 2) + ".dll"
Could you do this:
libc_so = libm_so = RbConfig::CONFIG["sitearch"].split(/-/, 2) + ".dll"
DL::DLError: unknown symbol "atof"
The new code loads ruby19.dll. Is that what you mean to do? Or were you trying to