Compile error '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'

kssidhu7
Mon, 16 Aug 2021 11:18:38 +0000
World Creation

Hi

I’m stuck trying to compile my project with an error it looks like something to do with Chaos. My project was originally 4.25 and I had added chaos manually. Now all references that I can tell are removed, .uproject plugins and .build.cs.
I’ve tried a couple of times clear and regenerate VS files, and even copying project to UE5. The error is same there as well.
Any ideas to help?
I will try and see if some plug in is causing an issue, but the compile error is always coming after it starts to compile my module RH.cpp.
My last compile was a couple of months ago, I will go through all my changes as well…

Thanks

0>Building RHEditor...
0>Using Visual Studio 2019 14.29.30040 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
0>Building 4 actions with 8 processes...
0>  [1/4] Module.RH.cpp
0>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(611): Warning C4005 : 'TEXT': macro redefinition
0>C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\HAL/Platform.h(1082): Reference C4005 : see previous definition of 'TEXT'
0>C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Experimental\Chaos\Public\Chaos/PBDRigidsSOAs.h(30): Error C2039 : '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
0>C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(13): Reference C2039 : see declaration of 'FWindowsPlatformAtomics'
0>C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Experimental\Chaos\Public\Chaos/PBDRigidsSOAs.h(30): Error C2665 : '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
0>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9727): Reference C2665 : could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
0>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9714): Reference C2665 : or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'

2 posts - 2 participants