Errors compiling with FScopeLock

As the title, I had been trying to compile a singleton that uses FScopeLock and FCriticalSection for thread safety. The following logging started coming out during compile and continues to do so after removed the code that uses FScopeLock/FCriticalSection + the headers for them.

I’m at a loss for why this is suddenly happening, so any advice would be helpful. Thanks!


2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(56): error C2039: '_InterlockedIncrement': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(56): error C2665: '_InterlockedIncrement': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8844): note: could be 'unsigned __int64 _InterlockedIncrement(volatile unsigned __int64 *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8833): note: or       'unsigned long _InterlockedIncrement(volatile unsigned long *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8824): note: or       'unsigned int _InterlockedIncrement(volatile unsigned int *)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(259): note: or       'long _InterlockedIncrement(volatile long *)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(56): note: while trying to match the argument list '(volatile int32 *)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(68): error C2039: '_InterlockedAdd': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(68): error C2664: 'LONG _InterlockedAdd(volatile LONG *,LONG)': cannot convert argument 1 from 'volatile int32 *' to 'volatile LONG *'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(68): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(79): error C2039: '_InterlockedDecrement': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(79): error C2665: '_InterlockedDecrement': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8875): note: could be 'unsigned __int64 _InterlockedDecrement(volatile unsigned __int64 *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8864): note: or       'unsigned long _InterlockedDecrement(volatile unsigned long *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8855): note: or       'unsigned int _InterlockedDecrement(volatile unsigned int *)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(209): note: or       'long _InterlockedDecrement(volatile long *)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(79): note: while trying to match the argument list '(volatile int32 *)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(91): error C2039: '_InterlockedAdd': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(91): error C2664: 'LONG _InterlockedAdd(volatile LONG *,LONG)': cannot convert argument 1 from 'volatile int32 *' to 'volatile LONG *'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(91): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(103): error C2039: '_InterlockedExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(103): error C2665: '_InterlockedExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8910): note: could be 'unsigned __int64 _InterlockedExchange(volatile unsigned __int64 *,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8898): note: or       'unsigned long _InterlockedExchange(volatile unsigned long *,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8888): note: or       'unsigned int _InterlockedExchange(volatile unsigned int *,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(222): note: or       'long _InterlockedExchange(volatile long *,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(103): note: while trying to match the argument list '(volatile int32 *, int32)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(114): error C2039: '_InterlockedExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(114): error C2665: '_InterlockedExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8910): note: could be 'unsigned __int64 _InterlockedExchange(volatile unsigned __int64 *,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8898): note: or       'unsigned long _InterlockedExchange(volatile unsigned long *,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8888): note: or       'unsigned int _InterlockedExchange(volatile unsigned int *,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(222): note: or       'long _InterlockedExchange(volatile long *,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(114): note: while trying to match the argument list '(volatile int32 *, int)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(200): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(212): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(253): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(292): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(326): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(350): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(381): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(416): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(436): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(473): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(532): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(545): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(603): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1207): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1207): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1207): note: while trying to match the argument list '(volatile int32 *, int, int)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1215): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1227): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1227): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1227): note: while trying to match the argument list '(volatile int32 *, int, int)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1231): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1636): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1663): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1684): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1692): error C2039: '_InterlockedCompareExchangePointer': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1743): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1755): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(1765): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2257): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2259): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2259): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2259): note: while trying to match the argument list '(volatile FDequeueCache::TSignedCounter *, FDequeueCache::TCounter, FDequeueCache::TCounter)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2290): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2760): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2760): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2760): note: while trying to match the argument list '(volatile int32 *, int, int)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2767): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2774): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2792): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2817): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2817): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2817): note: while trying to match the argument list '(volatile int32 *, int, int)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2826): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Containers/LockFreeVoidPointerListBase.h(2839): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1285): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1456): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1463): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1465): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1483): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1485): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1492): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Stats/Stats2.h(1499): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBase.h(193): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBase.h(193): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBase.h(193): note: while trying to match the argument list '(int32 *, int32, int32)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBase.h(210): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBase.h(210): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBase.h(210): note: while trying to match the argument list '(int32 *, int32, int32)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(85): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(85): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(85): note: while trying to match the argument list '(int32 *, int32, int32)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(107): error C2039: '_InterlockedCompareExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(107): error C2665: '_InterlockedCompareExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: could be 'unsigned __int64 _InterlockedCompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: or       'unsigned long _InterlockedCompareExchange(volatile unsigned long *,unsigned long,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: or       'unsigned int _InterlockedCompareExchange(volatile unsigned int *,unsigned int,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: or       'long _InterlockedCompareExchange(volatile long *,long,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(107): note: while trying to match the argument list '(int32 *, int32, int32)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(228): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h(239): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(34): note: see declaration of 'FWindowsPlatformMisc'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(67): error C2039: '_InterlockedIncrement': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(67): error C2665: '_InterlockedIncrement': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8844): note: could be 'unsigned __int64 _InterlockedIncrement(volatile unsigned __int64 *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8833): note: or       'unsigned long _InterlockedIncrement(volatile unsigned long *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8824): note: or       'unsigned int _InterlockedIncrement(volatile unsigned int *)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(259): note: or       'long _InterlockedIncrement(volatile long *)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(67): note: while trying to match the argument list '(volatile int64 *)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(79): error C2039: '_InterlockedAdd': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(79): error C2664: 'LONG _InterlockedAdd(volatile LONG *,LONG)': cannot convert argument 1 from 'volatile int64 *' to 'volatile LONG *'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(79): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(90): error C2039: '_InterlockedDecrement': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(90): error C2665: '_InterlockedDecrement': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8875): note: could be 'unsigned __int64 _InterlockedDecrement(volatile unsigned __int64 *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8864): note: or       'unsigned long _InterlockedDecrement(volatile unsigned long *)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8855): note: or       'unsigned int _InterlockedDecrement(volatile unsigned int *)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(209): note: or       'long _InterlockedDecrement(volatile long *)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(90): note: while trying to match the argument list '(volatile int64 *)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(102): error C2039: '_InterlockedAdd': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(102): error C2664: 'LONG _InterlockedAdd(volatile LONG *,LONG)': cannot convert argument 1 from 'volatile int64 *' to 'volatile LONG *'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(102): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(114): error C2039: '_InterlockedExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(114): error C2665: '_InterlockedExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8910): note: could be 'unsigned __int64 _InterlockedExchange(volatile unsigned __int64 *,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8898): note: or       'unsigned long _InterlockedExchange(volatile unsigned long *,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8888): note: or       'unsigned int _InterlockedExchange(volatile unsigned int *,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(222): note: or       'long _InterlockedExchange(volatile long *,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(114): note: while trying to match the argument list '(volatile int64 *, int64)'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(125): error C2039: '_InterlockedExchange': is not a member of 'FWindowsPlatformAtomics'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics'
2>D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(125): error C2665: '_InterlockedExchange': none of the 4 overloads could convert all the argument types
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8910): note: could be 'unsigned __int64 _InterlockedExchange(volatile unsigned __int64 *,unsigned __int64)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8898): note: or       'unsigned long _InterlockedExchange(volatile unsigned long *,unsigned long)'
2>  C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8888): note: or       'unsigned int _InterlockedExchange(volatile unsigned int *,unsigned int)'
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(222): note: or       'long _InterlockedExchange(volatile long *,long)'
2>  D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter64.h(125): note: while trying to match the argument list '(volatile int64 *, int)'
2>  integration_kit_devGameModeBase.cpp
2>  integration_kit_dev.generated.cpp
2>  integration_kit_dev.cpp
2>  [10/13] Link UE4Editor-integration_kit_dev-Win64-DebugGame.dll
2>  [11/13] Link UE4Editor-integration_kit_dev-Win64-DebugGame.lib
2>     Creating library D:\UniversityOfLincoln\dawson	ech_study\integration_kit_dev\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-integration_kit_dev-Win64-DebugGame.lib and object D:\UniversityOfLincoln\dawson	ech_study\integration_kit_dev\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-integration_kit_dev-Win64-DebugGame.exp
2>     Creating library D:\UniversityOfLincoln\dawson	ech_study\integration_kit_dev\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-integration_kit_dev-Win64-DebugGame.suppressed.lib and object D:\UniversityOfLincoln\dawson	ech_study\integration_kit_dev\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-integration_kit_dev-Win64-DebugGame.suppressed.exp
2>ERROR : UBT error : Failed to produce item: D:\UniversityOfLincoln\dawson	ech_study\integration_kit_dev\Plugins\Tsunoda\Binaries\Win64\UE4Editor-Tsunoda-Win64-DebugGame.dll
2>  Total build time: 50.24 seconds (Local executor: 0.00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command "D:\EpicApps\UE4_VERSIONS\UE_4.15\Engine\Build\BatchFiles\Rebuild.bat integration_kit_devEditor Win64 DebugGame "D:\UniversityOfLincoln\dawson	ech_study\integration_kit_dev\integration_kit_dev.uproject" -waitmutex" exited with code -1.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Do you mind attaching your code? Thanks.

I’m getting same build error.
I posted here Getting build error in my engine plugin while building in UE4 editor while packaging the project - C++ - Epic Developer Community Forums

I had similar code and had the same error and fixed with by moving the include of ‘windows.h’ from a common header file to the source file which used the windows functions. I think some UE4 headers do not like windows.h to be included before them.

@cool_kau : do you mean ‘windows_api.h’?