Does not compile with visual studio 2013
LogicalError opened this issue · 5 comments
The project fails to compile under visual studio 2013.
std::min / std::max not found in CollisionPrimitive.cpp, can be fixed by adding
include
Also getting lots of direct-x related warnings, this solved the warnings for me:
http://stackoverflow.com/a/16868002/392825
"Wherever d3dx9.h, d3dx10.h, or d3dx11.h are included in your project, be sure to explicitly include d3d9.h, d3d10.h and dxgi.h, or d3d11.h and dxgi.h first to ensure you are picking up the newer version"
A quick and dirty fix is to change the include directory order so that Windows 8(.1) SDK headers are included before the old DX SDK headers.
Also, the D3D11.h from the DX SDK file conflicts somewhere with the newer d3dcommon.h so you can rename d3d11.h (in the DX SDK) to something else and then build as a dirty hack.
As I mentioned, simply adding
#include <dxgi.h>
#include <d3d11.h> / #include <d3d10.h> / #include <d3d9.h>
at the start of all the files that include d3dx10/d3dx11/d3dx9 functionality will fix this.
We don't support vs2013 yet.
Currently we use DirectX SDK instead of Windows SDK.
After switching to VS2013, directx sdk june 2010 will not required.
Alan
Still can't seem to get it to work. After doing all that, these are the errors I get:
Error 57 error C2146: syntax error : missing ';' before identifier 'MinPrecision' c:\program files (x86)\windows kits\8.1\include\um\d3d11shader.h 68
Error 58 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\d3d11shader.h 68
Error 59 error C2146: syntax error : missing ';' before identifier 'InterpolationMode' c:\program files (x86)\windows kits\8.1\include\um\d3d11shader.h 235
These repeat for three times each in d3d11shader.h file. Anybody have an idea how to proceed fixing this?
Added vs2013 solution.
Alan