On Fri, Jul 20, 2012 at 3:47 PM, Jose <
pepone...@gmail.com> wrote:
Hello,
>
> I have build an executable with MinGW that comes with Ruby Dev Kit
> DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe.
>
> The produced executable is dynamic linked to MSVCRT.dll, and it
> doesn't work on XP SP3 because it could not located
> _get_output_format procedure in the MSVCRT.dll
>
What version of Ruby? which branch in case of working from the source?
> When i do the same back in February, the produced executable was by
> default static linked with libmsvcrt.a and it was
> working fine in XP Sp3.
>
MinGW did never provide a static linked version of msvcrt, perhaps
you're confused with Visual Studio which did allow linking to one or
the other.
Even that MinGW provides libmsvcrt.a, is not a static library, it
links to msvcrt.dll
> There was any change in DevKit that could explain this?
>
DevKit has been the same and this is the first complain about it.
The usage of _get_output_format is caused by Ruby and not the DevKit.
> I have not changed my compiler or linker flags, just do a clean
> install of XP and Ruby dev kit.
>
Did you change your compiler?
> I have try to pass -static-libstdc++ to the linker, but the linker
> complains about this being an unrecognized argument
>
Ruby is C, not C++, adding -static-libstdc++ has no effect because is
not C++ and is not linking against libstdc++
Please provide more information about what version of Ruby are you
talking about, where you built it (if so or used provided binaries,
etc).
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry