linking obj files compiled with LDC2 1.20.0 on Win64

Steven Schveighoffer schveiguy at gmail.com
Sun Mar 22 20:20:17 UTC 2020


On 3/22/20 2:43 PM, realhet wrote:
> Hello,
> 
> I'm try to use the latest LDC2 version: 1.20.0
> Previously I used 1.6.0
> 
> After fixing all the compiler errors and warnings, I managed to compile 
> all the d source files to obj files, and I got 4 linking errors. I think 
> all of them caused by the first 2:
> 
> 1:
> msvcrt.lib(initializers.obj) : warning LNK4098: defaultlib 'libcmt.lib' 
> conflicts with use of other libs; use /NODEFAULTLIB:library
> 
> 2:
> exceptions.obj : error LNK2019: unresolved external symbol 
> _D3std6format__T11hasToStringTSQBd4json9JSONValueTaZ9__lambda2MFZ1S3putMFNaNbNiNfaZv 
> referenced in function 
> _D3std5range10primitives__T5doPutTSQBh6format__T11hasToStringTSQCj4json9JSONValueTaZ9__lambda2MFZ1STaZQCxFNaNbNiNfKQDdKaZv 
> 

Make sure you don't have any stale objects left over in your project 
from the older build. Build everything clean from scratch.

-Steve


More information about the Digitalmars-d-learn mailing list