On Fri, 14 Sep 2018 06:42:00 GMT, Lars Johansson wrote:

Hi,
I'm having problems with linker.
Following the webchat tutorial in windows 8.1 powershell.
DMD32 D Compiler v2.082.0
DUB version 1.11.0, built on Sep 1 2018
run DBU in the webchat directory gives:
Unexpected OPTLINK termination at EIP=0040F60A

Is this a bug or am I doing something wrong?

(...)

This is currently an unfortunate limitation on Windows, where the DigitalMars linker runs into a crash when building with the default OMF output. The alternative is to build using either -a x86_mscoff or -a x86_64. I haven't tested it, but the latter may run out of the box, while the former probably requires VisualStudio to be installed, so that the Microsoft linker is available.

The other alternative is to use LDC instead of DMD, which also runs fine on Windows (dub --compiler=path/to/ldc2.exe).