[Win32utils-devel] Possible problem with msvcrt vs msvcrXX

Heesob Park phasis at gmail.com
Thu Jun 25 00:45:52 EDT 2009


2009/6/25 Daniel Berger <djberg96 at gmail.com>:
>
>> > The ruby.exe.manifest *does* exist. I checked. It's also checked in
>> the windows-api code:
>> >
>> >   # With Microsoft Visual C++ 8 and later users should use the
>> associated
>> >   # DLL instead of msvcrt directly, if possible.
>> >   if CONFIG['host_os'].split('_')[1]
>> >      if CONFIG['host_os'].split('_')[1].to_i >= 80 &&
>> >         File.exists?(File.join(CONFIG['bindir'],
>> 'ruby.exe.manifest'))
>> >      then
>> >         MSVCRT_DLL = 'msvcr' + CONFIG['host_os'].split('_')[1]
>> >      else
>> >         MSVCRT_DLL = 'msvcrt'
>> >      end
>> >   else
>> >      MSVCRT_DLL = 'msvcrt'
>> >   end
>> >
>> Did you install ruby binary and Microsoft Visual C++ 8 on the same
>> computer?
>
> Yes.
>
>> If not, Microsoft.VC90.CRT.manifest and msvcr90.dll must exist on the
>> ruby bin folder.
>
> I must have a path issue.
>
That's odd. Did you build ruby with non default compiler option?

Both ruby.exe and msvcr90-ruby18.dll have dependency with msvcr90.dll.
You can check with "dumpbin /imports ruby.exe"

If you have a path issue, ruby.exe and irb should failed to run.


Regards,

Park Heesob


More information about the win32utils-devel mailing list