error C1189: #error : <atomic> is not supported when compiling with /clr or /clr:pure.

C++调用C#的dll
已经按网上的其他回答设置了/clr、md,然后出现如下错误:

error C1189: #error :  <atomic> is not supported when compiling with /clr or /clr:pure.

请问该如何解决?