Hello. When compiling some examples from the MS DirectX SDK (June 2010) occurs ..\..\DXUT\Core\DXUTenum.cpp(3976): error С2668: 'abs': ambiguous call to overloaded function . Text3D in the folder "Samples \ C ++ \ Direct3D \" completely refuses to compile. Compiler: VC ++ 14 Update 3.

Angl sources in solving the problem did not help. What to do with it, until the mind can not attach. Accordingly, I cannot get into line 3976. after editing any dish with DXUT, the studio gives an error when linking. Can anyone come across this when working with new compilers and D3D9? What to do with it?

DirectX SDK downloaded from the official site. I will not look for the link, and I don’t remember, for a long time. I collect under Win32 / Debug mode, the source, as well as other resources in the original samples. If I run my old computer with an AMD processor, it has VS2010 and that SDK, I will try to build a project there.

  • VC ++ 14 is VS2015? On other versions going? Add links to the question where you downloaded the SDK from. And describe in more detail how you are trying to collect. - αλεχολυτ
  • Yes - VS2015, for others I do not know. I would not like to change the compiler because of such trifles. - VBS
  • In VS2010, everything is assembled without a single error. - VBS

0