Still unresolved, but a thought:

I decided to take a step back and try to link with C on Linux
first. I found out that if I did the linking step with dmd things
worked, but not with gcc. The reason then became apparent: dmd
knows to pass druntime and phobos and all of that stuff to the
linker. Running on the assumption that this was also my problem on Windows, I ran dmd with -v (verbose) to try and get the linker line it uses for a simple program that just uses some Phobos functions, the line I get is: C:\D\dmd2\windows\bin\link.exe test,nul,,user32+kernel32/noi; Which does not appear to be helpful and seems to indicate that Phobos does not need to be passed to the linker?

Reply via email to