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

BoQsc vaidas.boqsc at gmail.com
Tue May 8 18:40:34 UTC 2018


On Tuesday, 8 May 2018 at 18:38:10 UTC, BoQsc wrote:
> On Tuesday, 8 May 2018 at 17:35:13 UTC, Jesse Phillips wrote:
>> On Tuesday, 8 May 2018 at 16:34:53 UTC, BoQsc wrote:
>>> On Tuesday, 8 May 2018 at 16:18:27 UTC, bachmeier 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:
>>>>
>>>> Maybe that isn't the best choice of beginner example if even 
>>>> the D experts can't figure out how to get it to run.
>>>
>>> Might be a bug, I have already reported it and saw some bug 
>>> duplicates like mine.
>>> However, since 2017 report, it seems to be - still not going 
>>> well.
>>> If I have a chance I'll try to download latest dlang 
>>> distribution and install on a completely clean Windows 10 
>>> Operating system. But I'm not hoping for any luck, but still 
>>> in need of try trial.
>>
>> So I gave this a try and this command worked:
>>
>>  >dub --arch=x86_64 --single start_minimal_server.d
>>
>> I'm on Windows 8 with All the visual studio versions installed
>> DMD32 D Compiler v2.080.0-beta.1
>> DUB version 1.9.0-beta.1, built on Apr 17 2018
>
> Tested with these versions so far, and had all the same errors:
> C:\Users\Vaidas>dmd --version
> DMD32 D Compiler v2.079.1
>
> C:\Users\Vaidas>dub --version
> DUB version 1.8.1, built on Apr 14 2018
>
> C:\Users\Vaidas>dmd --version
> DMD32 D Compiler v2.080.0
>
> C:\Users\Vaidas>dub --version
> DUB version 1.9.0, built on May  1 2018

Linking...
C:\D\dmd2\windows\bin\lld-link.exe: warning: 
eventcore.lib(sockets_106c_952.obj): undefined symbol: 
SetWindowLongPtrA
C:\D\dmd2\windows\bin\lld-link.exe: warning: 
eventcore.lib(sockets_106c_952.obj): undefined symbol: 
GetWindowLongPtrA
error: link failed
Error: linker exited with status 1
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.


More information about the Digitalmars-d-learn mailing list