On Wednesday, 30 January 2019 at 20:07:15 UTC, Jacob Carlborg
wrote:
It's Optlink being stupid as always. If you want to figure out
what's wrong you can invoke Dub with the "--verbose" flag to
have it print the commands it's running, i.e. how it's invoking
the compiler and the linker. You can do the same thing when
invoking the compiler manually by adding "-v" to see how it
links the application and compare that with Dub.
Or, you can try compiling as COFF instead of OMF which will not
use Optlink. Add the flag "--arch=x86mscoff" when invoking Dub.
I think I'll wait, but thanks for letting me know.