Cannot link vibe.d sample / optlink error
Seb
seb at wilzba.ch
Tue Apr 9 06:53:09 UTC 2019
On Tuesday, 9 April 2019 at 06:50:36 UTC, Michal Minich wrote:
> On Monday, 8 April 2019 at 14:49:02 UTC, Radu wrote:
>
>> [...]
>
> Thank you Radu!
>
> Your answer helped and hello word is now running :)
>
> After using --verbose I found that I do not have libcmt.lib on
> my computer at all. Though I have Visual Studio 2019 installed,
> it is for C#. Looks like when you have VS 2019, then classical
> redistributable packages are not supported any more. After a
> bit of experimenting I found adding "MSVC v142 - VS2019 C==
> x86/x85 build tools (v13.20" from VS installer installed the
> libcmt.lib. After running dub with --arch=x86_mscoff from VS
> command line it worked.
See also this related issue with quite some discussion on the
topic:
https://issues.dlang.org/show_bug.cgi?id=19760
More information about the Digitalmars-d-learn
mailing list