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?