Are there any GDC builds available for Windows?

Ferhat Kurtulmuş aferust at gmail.com
Thu Apr 22 06:31:14 UTC 2021


On Wednesday, 21 April 2021 at 18:03:57 UTC, Imperatorn wrote:
> On Tuesday, 20 April 2021 at 09:48:01 UTC, Ferhat Kurtulmuş 
> wrote:
>> On Sunday, 11 April 2021 at 19:15:18 UTC, Ferhat Kurtulmuş 
>> wrote:
>>> On Sunday, 11 April 2021 at 18:32:19 UTC, Imperatorn wrote:
>>>> On Saturday, 10 April 2021 at 15:08:56 UTC, Ferhat Kurtulmuş 
>>>> wrote:
>>>>> On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat 
>>>>> Kurtulmuş wrote:
>>>>>> [...]
>>>>>
>>>>> Here are the command and the output.
>>>>>
>>>>> https://controlc.com/a0968e90
>>>>
>>>> Thanks, what can we do to reproduce this? Just try do 
>>>> anything socket-related?
>>>
>>> The server code in Adam's socket tutorial:
>>> http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html#server
>>>
>>> ```d
>>> gdc test.d -o test-L/opt/mingw64/x86_64-w64-mingw32/lib 
>>> -lws2_32 -lwsock32
>>>
>>> ./test
>>> ```
>>>
>>> Looks like a name mangling problem. I don't know.
>>
>> The only working solution is explicitly providing all library 
>> files and the source as inputs.
>>
>> ```gdc main.d libgdruntime.a libgphobos.a libwsock32.a 
>> libws2_32.a -o main```
>
> Good catch, we have some more patches coming. But I've had a 
> NDE aka mancold so not so active. Iain is working hard to get 
> gcc 11 ready. If the gods are with us I might have time to try 
> build the latest tonight or tomorrow.

Thank you for your valued efforts. I would like to report some 
additional results of my tests. I could also compile dub by 
adding "gdruntime" "gphobos" "wsock32" "ws2_32" in dub.sdl. I 
don't know if it is expected, but it looks like GDC does not link 
Phobos automatically as LDC does. If I am not wrong g++ also 
expects c++ runtime must be linked explicitly with -lstd++. And, 
I tried a simple SDL2 based dub project but I got a Segmentation 
fault during compilation.


More information about the D.gnu mailing list