|Posted by Ferhat Kurtulmuş|
in reply to Imperatorn
Posted in reply to Imperatorn
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.
Thanks, what can we do to reproduce this? Just try do anything socket-related?
The server code in Adam's socket tutorial:
gdc test.d -o test-L/opt/mingw64/x86_64-w64-mingw32/lib -lws2_32 -lwsock32
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.