Comment by Dwedit
4 years ago
I know that Win32s requires that the EXE have a RELOC section, so it must be built with relocation enabled.
I hope you don't need to go all the way to /NODEFAULTLIB though, that kind of configuration is a big headache to build on.
Is there a .lib file for "msvcrt.dll" that will work with /NODEFAULTLIB? If so, I wonder if there is a Win32s compatible binary for that.
> that kind of configuration is a big headache to build on
Not really, I've done just that (though in the end I didn't need full /NODEFAULTLIB):
https://github.com/rust9x/rust9x-sample/blob/main/.cargo/con...
With older msvcrt libraries you only need to link `libcmt.lib`/`msvcrt.lib`, that's it. Visual C++ 4.0 is apparently the last version to support Win32s, so if you can make it link to its libraries you might have a chance!