For posterity, turned out this was wrong. I was able to get a C++ binary
that depends on libstdc++ running on Nano Server with no changes to the
compiler, I just had to avoid explicitly linking '-lkernel32' (which CMake
does by default) because it brings in __C_specific_handler.

On Mon, Dec 21, 2015 at 3:38 PM, Michael Smith <[email protected]
> wrote:

> Has anyone tried to use MinGW-w64 to compile a binary for Windows Nano
> Server? The libstdc++ runtime statically links MessageBox, which seems to
> make it impossible without changing libstdc++.
>
> I'm looking at creating that change - to dynamically load user32 and check
> for MessageBox - but was curious if there's been any prior discussion or
> effort on changing it.
>
>
>
> --
> Michael Smith
> Developer, Puppet Labs
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to