Trying to create a trivial 64 bit D Lang DLL on a Windows 10 machine and cant get past linking.

WhatMeWorry kheaser at gmail.com
Fri Oct 2 07:34:03 UTC 2020


On Thursday, 1 October 2020 at 21:56:46 UTC, Ferhat Kurtulmuş 
wrote:
> On Thursday, 1 October 2020 at 21:35:42 UTC, WhatMeWorry wrote:
>> On Thursday, 1 October 2020 at 20:28:58 UTC, kinke wrote:
>>> [...]
>>
>>
>> Thanks all. I've gotten it to work with:
>>
>>>[...]
>>
>>>[...]
>>
>>>[...]
>> total = 12
>>
>> [...]
>
> 1) try running your commands in Visual Studio Native x64 CMD.

Yes, I've been doing that.

> 2) try link with msvcrt.lib

The only msvcrt.lib I can find on my Windows 10 machine is:

"C:\Windows Kits\10\Lib\10.0.19041.0\um\x64\ntstc_msvcrt.lib"

Also on Microsoft's docs
https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features?view=vs-2019 it talks about a ucrt.lib?




More information about the Digitalmars-d-learn mailing list