Download

C++ AMP conflict with UE 4.10

Hi,

In my project I use C++ AMP, all worked fine in UE 4.9 and Visual Studio 2013 (Win10). I tried to switch to Visual Studio 2015 and UE 4.10 and now, as soon as I include <amp.h>, I get this error: “Error C2226 syntax error: unexpected type ‘DWORD’ C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\concrt.h Line 63”

<Amp.h> includes <amprt.h> which includes <concrt.h>

This is how I use it:

#include “AllowWindowsPlatformTypes.h”
#include <amp.h>
#include “HideWindowsPlatformTypes.h”

That should be enough to replicate the error.

Please help