December 17, 2018
I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:

dub init tut -t vibe.d
cd tut
dub

I get this error: [optlink-error.png](https://postimg.cc/gwTB6y0G)

I tried adding

"subConfigurations": {"vibe-d": "win32"}

to my dub.json, but that didn't seem to change anything.
December 17, 2018
On Monday, 17 December 2018 at 04:06:36 UTC, Matthew OConnor wrote:
> I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:
>
> dub init tut -t vibe.d
> cd tut
> dub
>
> I get this error: [optlink-error.png](https://postimg.cc/gwTB6y0G)
>
> I tried adding
>
> "subConfigurations": {"vibe-d": "win32"}
>
> to my dub.json, but that didn't seem to change anything.

You'd better ask such stuff at learn section.

But anyway...

Seems like optlink issue, that probably won't be fixed.
What exactly causing this is beyond me.

What to do next:

By default dmd used old optlink.exe that uses old library format from DOS times.
There is -m32mscoff switch for dmd to tell it to use MS link.exe and MS-COFF library format (native to Visual C++), and -m64 is defaults to MS-COFF.

to tell dub use these you can specify one of the following architectures

    dub --arch=x86_mscoff ...the rest of command line...
    dub --arch=x86_64

or shorthand versions

    dub -ax86_mscoff
    dub -ax86_64