Hello, I have created a class in my c++ project UE4.15. VS2015 return Error C2039 ‘_InterlockedExchange’: is not a member of ‘FWindowsPlatformAtomics’ in IPAddress.h line: FPlatformAtomics::InterlockedExchange(&Parent->bShouldAbandon,true);
when I’'m compiling the project.
Someone can help me?? Thanks
Add this
#include "AllowWindowsPlatformTypes.h" #include "windows.h" // any native windows header #include "HideWindowsPlatformTypes.h"
around any native Windows header in your sources.
In that specific case you need to use
#include "AllowWindowsPlatformAtomics.h" ... #include "HideWindowsPlatformAtomics.h"
and not *Types.h
It solved my problem , thanks.
■■■■ Epic, ■■■■ UE, use original files is ok, once modify cpp files, is not work.