You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
I'm on Windows 10. I imported the .sln to Visual Studio 2019. It did some automatic project conversions and let me use the most current SDK. When building the solution I get the following errors:
1>C:\devel\asteroids_d3d12\src\camera.cpp(91,24): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(91,46): error C2039: 'cos': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(92,24): error C2039: 'cos': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(93,24): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(93,46): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
Adding #include <cmath>
as the last header file, makes the problem go away. Build succeeds and the demo runs.
On a completely different Windows 10 machine, using Visual Studio 2017, I didn't need this. I don't know how clean that build environment is, or how many additional developer tools I've installed.
The text was updated successfully, but these errors were encountered:
I'm on Windows 10. I imported the .sln to Visual Studio 2019. It did some automatic project conversions and let me use the most current SDK. When building the solution I get the following errors:
1>C:\devel\asteroids_d3d12\src\camera.cpp(91,24): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(91,46): error C2039: 'cos': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(92,24): error C2039: 'cos': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(93,24): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(93,46): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
Adding
#include <cmath>
as the last header file, makes the problem go away. Build succeeds and the demo runs.
On a completely different Windows 10 machine, using Visual Studio 2017, I didn't need this. I don't know how clean that build environment is, or how many additional developer tools I've installed.
The text was updated successfully, but these errors were encountered: