Minimal environment for linking Win32 windowed 64bit exes usind LDC2

realhet real_het at hotmail.com
Fri Jul 18 19:15:26 UTC 2025


On Friday, 18 July 2025 at 16:58:13 UTC, Luna wrote:
> On Friday, 18 July 2025 at 16:50:07 UTC, realhet wrote:
>> On Friday, 18 July 2025 at 15:42:23 UTC, realhet wrote:
>>> On Friday, 18 July 2025 at 15:25:04 UTC, Kagamin wrote:
>>>> ldc has libs in lib/mingw
>
> libcmt and co are a part of the Windows SDK. So you’d get those 
> by installing Visual Studio C++ tools

Yes, this worked, thx!

I installed build tools 2022 and windows 11 sdk, LDC2 
automatically noticed it and switched to that libcmt.  From that 
whopping 6GB it used 100KB.  So the simplest windows application 
grow from 6KB to 105KB by doing the static linking.

After that my bigger test with the external static libs was also 
successful.

The only LDC2 parameter is us now is --link-internally because 
that linker is really fast, I like it.  Otherwise it is 
automatic, I just need to install the right programs before.

Thank You!



More information about the Digitalmars-d-learn mailing list