Forum: Ruby msvcr*.dll

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
110324e154051dd83866097ba69f1bff?d=identicon&s=25 Morris Brodersen (Guest)
on 2007-06-29 00:48

i'm trying to build a ruby extension in c on windows, using mingw32's

these are the two compile commands i use:

gcc -o tga.o tga.c -c -I c:/ruby/lib/ruby/1.8/i386-mswin32
gcc -shared -o tga.o

everything compiles, with a few warnings, but is created. it has
also a valid Init_tga() function, because otherwise is just get "could
not find Init_tga()".

however, when i try to require, i get an error that "msvcr80.dll"
is missing. my question is: how did the compiler link to that dll
anyway? i didnt mention it. anyways i'd like to know how to fix this

by the way, its the one-click-installer of ruby 1.8.6 and windows xp

110324e154051dd83866097ba69f1bff?d=identicon&s=25 Mm Bb (morris)
on 2007-06-29 10:02
Morris Brodersen wrote:
> however, when i try to require, i get an error that "msvcr80.dll"
> is missing.
i downloaded the msvcr80.dll somewhere and moved it into c:/windows.
this didnt fix the problem, i now get a runtime error "application is
trying to initialize a library incorrectly".

btw, should i post this topic somewhere else? im new to ruby-forum. dont
know wether its the right category.
110324e154051dd83866097ba69f1bff?d=identicon&s=25 Mm Bb (morris)
on 2007-07-01 11:22
could it be that something in ruby.h is calling some function of any
110324e154051dd83866097ba69f1bff?d=identicon&s=25 Mm Bb (morris)
on 2007-07-02 14:42
well, i kind of fixed that problem... seems like the only thing i had to
do is to put into c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/. it
just works.

if somebody knows why this is happening i'd be very grateful :) because
i have other .so's which are definitely not in there but work.

This topic is locked and can not be replied to.