"Start a Minimal web server" example do not work.

BoQsc vaidas.boqsc at gmail.com
Tue May 8 12:37:42 UTC 2018


On Tuesday, 8 May 2018 at 12:19:14 UTC, Adam D. Ruppe wrote:
> On Tuesday, 8 May 2018 at 12:13:56 UTC, BoQsc wrote:
>> This is the code example, that was presented on the 
>> https://dlang.org frontpage:
>>
>> -----------------
>> #!/usr/bin/env dub
>
> This one needs to be compiled+run with the dub package manager 
> instead of with rdmd, which is why it has that shebang line. It 
> has external library dependencies rdmd can't handle.

My intuition now says to use dub this way:
--------------------------------------
C:\Users\Vaidas\Desktop>dub start_minimum_server.d
EC:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.

And got an error: Unexpected OPTLINK Termination at EIP=0040F60A
EAX=06CB0000 EBX=00438C70 ECX=000002C2 EDX=0000030D
ESI=00257000 EDI=06CB34F8 EBP=0019FF38 ESP=0019FEF0
First=00402000

Similar to this one: 
https://issues.dlang.org/show_bug.cgi?id=18799


More information about the Digitalmars-d-learn mailing list