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

Rainer Schuetze r.sagitario at gmx.de
Wed May 9 18:45:33 UTC 2018



On 08/05/2018 21:36, BoQsc wrote:
> On Tuesday, 8 May 2018 at 19:19:26 UTC, Seb wrote:
>> 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.

Unfortunately, the MinGW version that the replacement libraries are 
built from omit this symbol. Please file a bug report.

For Win32 (--arch=x86_mscoff) this symbol is aliased to SetWindowLongA 
which should be fine.

>>
>> 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)
> 
> I have installed the one suggested by the dmd-2.080.0.exe installer:
> 
> Microsoft Visual Studio Community 2017
> Version 15.7.0
> VisualStudio.15.Release/15.7.0+27703.1
> Microsoft .NET Framework
> Version 4.7.02556

What you actually need is Visual C++ (linker and runtime libraries). For 
the missing symbol above you also need the Windows SDK which is usually 
included in the Visual C++ installation.


More information about the Digitalmars-d-learn mailing list