DLL creation fails with undefined symbol error

evilrat evilrat666 at gmail.com
Fri Apr 26 12:37:46 UTC 2019


On Friday, 26 April 2019 at 05:08:32 UTC, dokutoku wrote:
> I tried to build a DLL in a Windows 64bit environment.
> It works well if the compiler is DMD, but in the case of LDC, 
> the build fails with a large number of undefined symbol errors.
>
> Is this a DUB or LDC bug?
> Or do I have to specify some additional arguments to the 
> command?

Seems like DMD links some system and/or runtime libs for you, 
while LDC doesn't.

What symbols are missing? It could be just msvcrt and some of the 
default system libs such as system32 and the like.


More information about the Digitalmars-d-learn mailing list