Hello Peter,

thanks for pointing this out.  I believe you are right and thinking more deeply about the problem, I have to find a solution for eliminating the dependency on msvcrt.dll entirely and I can go with my toolchain. The question is now: how to do so?

I was searching on the WWW for ways to recompile the Mingw-w64 runtime. It seems that Mingw and Mingw-w64 diverged in this regard. I was not aware that both projects are  that far away from each other. While there are numerous posts stating that linking against msvcr90 is easily possible using MingW even without recompiling the runtime, mixing mingw-w64 with other runtime versions seems to be a rare case. 
- I found a recent bug report for Debian which requests this for Mingw-w64, stating that this it is not yet possible:
- I found only two other threads where users dealt with a similar problem as I do:
Here a not successful attempt 
- And here someone suggested to use -nostdlib
  This solves the problem of having msvcrt.dll as a dependency, but the requester did not need any references to libmingwex.a . 

I wonder if it is possible at all to recompile Mingw-w64 such that it entirely depends on msvcr90.dll instead of msvcrt.dll. If so, do you (or someone else) even know how I can achieve this? 

Best regards
Sebastian




On Feb 8, 2013, at 4:02 PM, Peter Rosin wrote:

On 2013-02-08 15:04, Sebastian Wolff wrote:
The software Dependency Walker also lists some references to msvcrt.dll (!?)
I wonder how this comes, maybe from the native msvcrt90.dll?

I think mingwex is the culprit. It needs to be compiled with your new specs,
or something like that?

Cheers,
Peter

$ nm /mingw/lib/libmingwex.a | grep "_imp_"
        U __imp____mb_cur_max
        U __imp___pctype
        U __imp____mb_cur_max
        U __imp___pctype
        U __imp____mb_cur_max
        U __imp____mb_cur_max
        U __imp____mb_cur_max
        U __imp____mb_cur_max
        U __imp___iob
        U __imp___iob
        U __imp___iob
        U __imp___iob
        U __imp___fpreset
        U __imp___osver
        U __imp___iob
        U __imp___osver
        U __imp__pow