NotSpooky / node_dlang

Library to build N-API node modules with the D language
13 stars 1 forks source link

LDC: Missing symbols during linking on Windows or MacOS #2

Open aminya opened 3 years ago

aminya commented 3 years ago

LDC fails to link the library during linking on Windows or MacOS. This works with DMD.


Performing "release-nobounds" build using ldc2 for x86_64.
automem 0.6.6: building configuration "library"...
node_dlang 0.4.11: building configuration "node_dlang_windows"...
minijson 0.5.1+commit.2.ga55225b: building configuration "node-lib"...
src\native\lib.d(56,16): vgc: operator `~=` may cause a GC allocation
src\native\lib.d(85,18): vgc: operator `~=` may cause a GC allocation
src\native\lib.d(99,14): vgc: operator `~=` may cause a GC allocation
src\native\lib.d(103,10): vgc: operator `~=` may cause a GC allocation
Linking...
minijson.node.obj : error LNK2019: unresolved external symbol _D12TypeInfo_Aya6__initZ referenced in function minifyString
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D12TypeInfo_Aya6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8encoding8bomTableyASQz8typecons__T5TupleTEQBvQBu3BOMVAyaa6_736368656d61TAhVQwa8_73657175656e6365ZQCl referenced in function _D3std4file__T8readTextTAyaTQeZQrFNfKQnZQq
minijson.node.obj : error LNK2019: unresolved external symbol _D3std3utf12UTFException7__ClassZ referenced in function _D3std4file__T8readTextTAyaTQeZQrFNfKQnZQq
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std3utf12UTFException7__ClassZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std3utf12UTFException6__vtblZ referenced in function _D3std3utf__T10decodeImplVbi1VEQBd8typecons__T4FlagVAyaa19_7573655265706c6163656d656e744463686172ZQCai0TAxaZQDrFKQjKmZ10invalidUTFMFNaNbZCQFgQFf12UTFException
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std3utf12UTFException6__vtblZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std3utf12UTFException6__initZ referenced in function _D3std3utf__T10decodeImplVbi1VEQBd8typecons__T4FlagVAyaa19_7573655265706c6163656d656e744463686172ZQCai0TAxaZQDrFKQjKmZ10invalidUTFMFNaNbZCQFgQFf12UTFException
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std3utf12UTFException6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D11TypeInfo_Aa6__initZ referenced in function _D4core8internal5array8capacity__T22_d_arraysetlengthTImplHTAaTaZ18_d_arraysetlengthTFNaNbNeMNkKQBkmZm
node_dlang.lib(js_native_api.obj) : error LNK2001: unresolved external symbol _D11TypeInfo_Aa6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D11TypeInfo_Aa6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D9Exception7__ClassZ referenced in function _D3std5regex8internal6parser__T6ParserTAyaTSQBqQBpQBmQBg7CodeGenZQBi__T6__ctorTAxaZQmMFNcNeQCaQpZSQDsQDrQDoQDi__TQDeTQDaTQDaZQDq
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D9Exception7__ClassZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std5regex8internal2ir14RegexException7__ClassZ referenced in function _D3std5regex8internal6parser__T6ParserTAyaTSQBqQBpQBmQBg7CodeGenZQBi5errorMFNaNeQBpZv
minijson.node.obj : error LNK2019: unresolved external symbol _D6object9Throwable7__ClassZ referenced in function _D3std3uni7unicode__T17parsePropertySpecTSQBo5regex8internal6parser__T6ParserTAyaTSQDdQBpQBmQBg7CodeGenZQBiZQDjFNfKQCwbbZSQEqQEp__T13InversionListTSQFqQFp8GcPolicyZQBh
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D6object9Throwable7__ClassZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std6format15FormatException7__ClassZ referenced in function _D3std6format5write__T14formattedWriteTSQBm5array__T8AppenderTAyaZQoTaTQjTQmTQpZQCgFNaNfKQByMxAaQBiQBlQBoZk
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std6format15FormatException7__ClassZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std4conv21ConvOverflowException7__ClassZ referenced in function _D3std4conv__T5parseTiTAxaVEQBa8typecons__T4FlagVAyaa7_646f436f756e74ZQBbi0ZQCkFNaNfKQCkZi
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv21ConvOverflowException7__ClassZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std4conv13ConvException7__ClassZ referenced in function _D3std4conv__T9convErrorTAxaTiZQrFNaNfQnAyamZCQBsQBr13ConvException
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv13ConvException7__ClassZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std4conv13ConvException6__vtblZ referenced in function _D3std4conv__T9convErrorTAxaTiZQrFNaNfQnAyamZCQBsQBr13ConvException
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv13ConvException6__vtblZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std4conv13ConvException6__initZ referenced in function _D3std4conv__T9convErrorTAxaTiZQrFNaNfQnAyamZCQBsQBr13ConvException
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv13ConvException6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D12TypeInfo_Axa6__initZ referenced in function _D3std4conv__T6toImplTAyaTiZQoFNaNbNeikEQBm5ascii10LetterCaseZQBo
node_dlang.lib(js_native_api.obj) : error LNK2001: unresolved external symbol _D12TypeInfo_Axa6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D12TypeInfo_Axa6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std4conv21ConvOverflowException6__vtblZ referenced in function _D3std4conv__T6toImplTiTxkZQnFxkZ12__dgliteral3MFNaNbNfZC6object9Throwable
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv21ConvOverflowException6__vtblZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std4conv21ConvOverflowException6__initZ referenced in function _D3std4conv__T6toImplTiTxkZQnFxkZ12__dgliteral3MFNaNbNfZC6object9Throwable
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv21ConvOverflowException6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2LuyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2LlyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2LtyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2LoyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2LmyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2MnyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2McyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2MeyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2NdyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2NlyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2NoyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PcyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PdyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PsyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PeyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PiyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PfyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2PoyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2SmyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2ScyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2SkyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2SoyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2ZsyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2ZlyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2ZpyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps2CoyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D3std8internal14unicode_tables8uniProps10AlphabeticyAh referenced in function _D3std3uni__T12loadPropertyTSQBbQBa__T13InversionListTSQCbQCa8GcPolicyZQBhTaZQCmFNaNfMxAaKQCkZb
minijson.node.obj : error LNK2019: unresolved external symbol _D11TypeInfo_Ak6__initZ referenced in function _D3std3uni__T13InversionListTSQBcQBb8GcPolicyZQBh__T6__ctorTSQChQCg__TQCfTQBtZQCnZQBeMFNaNbNcNfQBjZQBn
minijson.node.obj : error LNK2019: unresolved external symbol _D6Object7__ClassZ referenced in function _D3std5regex8internal2ir__T5RegexTaZQj11__xopEqualsFKxSQCbQCaQBxQBr__TQBrTaZQBxKxQBbZb
minijson.node.obj : error LNK2019: unresolved external symbol _D10TypeInfo_m6__initZ referenced in function _D3std5regex8internal9kickstart__T7ShiftOrTaZQl6__ctorMFNcNeKSQCiQChQCe2ir__T5RegexTaZQjAkZSQDmQDlQDiQDc__TQCvTaZQDb
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_m6__initZ
minijson.node.obj : error LNK2019: unresolved external symbol _D3std6getopt15GetOptException7__ClassZ referenced in function _D3std6getopt__T10getoptImplTAyaTQeTPAQjTQmTQpTPQtTQwTQzTPbZQBsFNfKQBeKSQCsQCr13configurationKSQDpQDo12GetoptResultKCQElQEk15GetOptExceptionHQEiAvQgQEpQEsQEoQEyQFbQEmQFhQFkQElZv
minijson.node.obj : error LNK2019: unresolved external symbol _D3std6getopt15GetOptException6__vtblZ referenced in function _D3std6getopt__T10getoptImplTAyaTQeTPAQjTQmTQpTPQtTQwTQzTPbZQBsFNfKQBeKSQCsQCr13configurationKSQDpQDo12GetoptResultKCQElQEk15GetOptExceptionHQEiAvQgQEpQEsQEoQEyQFbQEmQFhQFkQElZv
minijson.node.obj : error LNK2019: unresolved external symbol _D3std6getopt15GetOptException6__initZ referenced in function _D3std6getopt__T10getoptImplTAyaTQeTPAQjTQmTQpTPQtTQwTQzTPbZQBsFNfKQBeKSQCsQCr13configurationKSQDpQDo12GetoptResultKCQElQEk15GetOptExceptionHQEiAvQgQEpQEsQEoQEyQFbQEmQFhQFkQElZv
minijson.node.obj : error LNK2019: unresolved external symbol _D3std9exception14ErrnoException7__ClassZ referenced in function _D3std9exception__T7bailOutHTCQBcQBb14ErrnoExceptionZQBiFNfAyamMAxaZNn
minijson.node.obj : error LNK2001: unresolved external symbol _D3std12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std5regex8internal12backtracking12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std5regex8internal6parser12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std5array12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std5array12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std10functional12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D4core6memory12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D4core6memory12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D4core8internal5array5utils12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D4core8internal5array5utils12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std9algorithm10comparison12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std6traits12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std6traits12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std4conv12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std4conv12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std6string12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std6string12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std9exception12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std9exception12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std9algorithm9searching12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std3uni12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std8typecons12__ModuleInfoZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std8typecons12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std5range12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std9algorithm8mutation12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std5regex8internal8thompson12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std5regex8internal9kickstart12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std11parallelism12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std4file12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D3std8encoding12__ModuleInfoZ
minijson.node.obj : error LNK2001: unresolved external symbol _D14TypeInfo_Const6__vtblZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D14TypeInfo_Const6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D14TypeInfo_Array6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_b6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_b6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D15TypeInfo_Struct6__vtblZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D15TypeInfo_Struct6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_w6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_w6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_k6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D13TypeInfo_Enum6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D18TypeInfo_Invariant6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D16TypeInfo_Pointer6__vtblZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D16TypeInfo_Pointer6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_v6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_v6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D14TypeInfo_Class6__vtblZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D14TypeInfo_Class6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D18TypeInfo_Interface6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D25TypeInfo_AssociativeArray6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D11TypeInfo_Av6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D11TypeInfo_Av6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_i6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_i6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_t6__initZ
minijson.node.obj : error LNK2001: unresolved external symbol _D20TypeInfo_StaticArray6__vtblZ
minijson.node.obj : error LNK2001: unresolved external symbol _D10TypeInfo_u6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D9Exception6__vtblZ referenced in function _D10node_dlang9referenceFPS19js_native_api_types10napi_env__KPSQBk12napi_value__ZPSQCe10napi_ref__
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D9Exception6__initZ referenced in function _D10node_dlang9referenceFPS19js_native_api_types10napi_env__KPSQBk12napi_value__ZPSQCe10napi_ref__
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D3std7variant16VariantException7__ClassZ referenced in function _D3std7variant__T8VariantNVmi8TS10node_dlang13NapiRefWithIdTSQBd13NapiValWithIdZQCl__T7handlerHTvZQmFEQDwQDv__TQDqVmi8TQDkTQClZQEg4OpIDPG8hPvZl
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D3std7variant16VariantException6__vtblZ referenced in function _D3std7variant__T8VariantNVmi8TS10node_dlang13NapiRefWithIdTSQBd13NapiValWithIdZQCl__T7handlerHTvZQmFEQDwQDv__TQDqVmi8TQDkTQClZQEg4OpIDPG8hPvZl
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D3std7variant16VariantException6__initZ referenced in function _D3std7variant__T8VariantNVmi8TS10node_dlang13NapiRefWithIdTSQBd13NapiValWithIdZQCl__T7handlerHTvZQmFEQDwQDv__TQDqVmi8TQDkTQClZQEg4OpIDPG8hPvZl
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D11TypeInfo_Am6__initZ referenced in function _D10node_dlang__T5JSObjTSQx8Console_Vbi1ZQy9positionsFNaNbNfZS3std8typecons__T5TupleTAmVAyaa12_66756e506f736974696f6e73TQBjVQBka14_6669656c64506f736974696f6e73ZQDe
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D3std6format15FormatException6__vtblZ referenced in function _D3std6format4spec__T10FormatSpecTaZQp6fillUpMFNaNlNfZv
node_dlang.lib(node_dlang.obj) : error LNK2019: unresolved external symbol _D3std6format15FormatException6__initZ referenced in function _D3std6format4spec__T10FormatSpecTaZQp6fillUpMFNaNlNfZv
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_a6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D10TypeInfo_h6__initZ
node_dlang.lib(node_dlang.obj) : error LNK2001: unresolved external symbol _D3std7variant12__ModuleInfoZ
.dub\build\node-lib-release-nobounds-windows-x86_64-ldc_v1.27.0-beta2-EEC04402D982366CADE4368B35BDF037\minijson.node.dll : fatal error LNK1120: 102 unresolved externals
Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.29.29917\bin\HostX64\x64\link.exe failed with status: 1120
NotSpooky commented 3 years ago

Changing the targetType of the node-lib configuration to staticLibrary makes errors go away, but I'm not sure it's the right solution.