How to make fat binary on windows (WinAPI + LDC)

Dmitry Olshansky dmitry.olsh at gmail.com
Sat Nov 8 17:03:04 UTC 2025


On Saturday, 8 November 2025 at 12:00:33 UTC, Suliman wrote:
>     Retelling from the grid of my torments:
[snip]
> This is resume of my attempts to build. DLL works fine but I 
> want fat binary

By fat you mean statically linked executable?
Then indeed the problem of handling multiple runtimes is a 
problem MinGW essentially has its own libc and mixing that with 
MSVC’s libc is not possible. To solve that your code most likely 
has to pick one of two and suffer through porting the code that 
uses the other.

I thought fat binary was meant to include multiple architectures 
like on MacOS where you could bundle ARM64 and Intel versions in 
one binary.

—
Dmitry Olshansky


More information about the Digitalmars-d mailing list