dub build doesn't work
Seb
seb at wilzba.ch
Wed Oct 23 06:40:47 UTC 2019
On Tuesday, 22 October 2019 at 22:14:02 UTC, OiseuKodeur wrote:
> Hello, i am having a problem with dub build with this project
> https://github.com/OiseauKodeur/cervelet/tree/master/source
>
> when i try to compile everything go well but when i click to
> run the .exe it give my an error missing msvcr100.dll, but with
> rdmd the program run fine
Did you try compiling with LDC?
Their Windows support is better maintained.
Anyhow, so what's happening is that dmd by default uses the
digitalmars C runtime (32-bit only) whereas dub will use the llvm
linker (64-bit) by default. Now llvm's linker searches for the
Microsoft C runtime and can't find it. Hence, the error which
you're receiving.
You won't need Visual Studio for this, but something which ships
msvcr100.dll.
So sth. like this should be enough:
https://www.microsoft.com/en-us/download/details.aspx?id=5555
BTW if you prefer using optlink and the digitalmars C runtime,
you can instruct dub to do so with: --arch=x86
More information about the Digitalmars-d-learn
mailing list