Need help with Windows linkage ( DMD using ImportC)
Carl Sturtivant
sturtivant at gmail.com
Mon Mar 4 21:21:20 UTC 2024
```
C:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64\link.exe
```
```
DMD64 D Compiler v2.107.0
```
I'm doing some experimentation with ImportC on Windows, and
getting this when linking.
```
blah.obj: error LNK2019: unresolved external symbol _mul128
referenced in function MultiplyExtract128
blah.obj: error LNK2019: unresolved external symbol
__shiftright128 referenced in function MultiplyExtract128
blah.obj: error LNK2019: unresolved external symbol _umul128
referenced in function UnsignedMultiplyExtract128
blah.obj: error LNK2019: unresolved external symbol __stosb
referenced in function RtlSecureZeroMemory
blah.obj: error LNK2019: unresolved external symbol __readgsqword
referenced in function NtCurrentTeb
blah.obj: error LNK2019: unresolved external symbol
__imp_MapViewOfFileNuma2 referenced in function MapViewOfFile2
blah.obj: error LNK2019: unresolved external symbol
__imp_CharUpperW referenced in function ua_CharUpperW
```
The details don't seem to matter much, windows headers #included
in C files compiled in with ImportC bring these sorts of things
in it seems, and I don't know how to link them, or exclude their
declarations with a #define before I #include such.
More information about the Digitalmars-d-learn
mailing list