dmd icon indicating copy to clipboard operation
dmd copied to clipboard

ImportC: _InterlockedExchangeAdd and a ton of other VC intrinsics are not recognized

Open dlangBugzillaToGithub opened this issue 2 years ago • 10 comments

Max Samukha (@maxsamukha) reported this on 2023-05-05T19:58:20Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=23894

CC List

  • Walter Bright (@WalterBright)
  • Carl Sturtivant

Description

"Windows.h" intrinsics:

main.obj : error LNK2019: unresolved external symbol _InterlockedExchangeAdd referenced in function _InlineInterlockedAdd
main.obj : error LNK2019: unresolved external symbol _InterlockedExchangeAdd64 referenced in function _InlineInterlockedAdd64
main.obj : error LNK2019: unresolved external symbol _mul128 referenced in function MultiplyExtract128
main.obj : error LNK2019: unresolved external symbol __shiftright128 referenced in function MultiplyExtract128
main.obj : error LNK2019: unresolved external symbol _umul128 referenced in function UnsignedMultiplyExtract128
main.obj : error LNK2019: unresolved external symbol _ReadWriteBarrier referenced in function BarrierAfterRead
main.obj : error LNK2019: unresolved external symbol __stosb referenced in function RtlSecureZeroMemory
main.obj : error LNK2019: unresolved external symbol __readgsqword referenced in function NtCurrentTeb

Fun!

!!!There are attachements in the bugzilla issue that have not been copied over!!!

dlangBugzillaToGithub avatar May 05 '23 19:05 dlangBugzillaToGithub