I have a big piece of code compiled with / MT (i.e. waiting for static binding to CRT). I need to combine this with a static third-party library that was built using / MD (i.e. For dynamic CRT binding).
Is it theoretically possible to link these two into one executable file without recompiling?
If I contact / nodefaultlib: msvcrt, I get a small number of undefined references to things like __imp__wgetenv . I am tempted to try to implement these functions in my own code, forwarding to wgetenv , etc. Should I try, or will I work right on the next issue?
Unfortunately, I am forbidden to prohibit the simple option of packing third-party code into a separate DLL: - /
visual-c ++ build msvcrt
slowdog
source share