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

Seb seb at wilzba.ch
Tue May 8 19:19:26 UTC 2018


On Tuesday, 8 May 2018 at 18:40:34 UTC, BoQsc wrote:
> 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:
>>> [...]
>>
>> 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.

That's with DMD's bundled LLD linker.
Have you tried:

1) installing MS Visual Studio (as others have mentioned their 
linker works)
2) Using LDC (they usually ship a newer version of the LLD linker)


More information about the Digitalmars-d-learn mailing list