2017-03-14 4 views
15

방금 ​​Visual Studio 2017 Community Edition으로 업그레이드했는데 표준 헤더 파일을로드하는 데 문제가 있습니다. 다양한 헤더 파일에서 507 개의 오류가 발생합니다. 여기에 몇 가지 조각은 다음과 같습니다표준 헤더의 Visual Studio 2017 오류

오류 중 일부 :

Severity Code Description Project File Line Suppression State 
Error (active) E1696 cannot open source file "errno.h" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cerrno 7 
Error (active) E1696 cannot open source file "float.h" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cfloat 7 
Error (active) E0282 the global scope has no "acosf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 629 
Error (active) E0282 the global scope has no "asinf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 629 
Error (active) E0282 the global scope has no "atanf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 630 
Error (active) E0282 the global scope has no "atan2f" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 630 
Error (active) E0282 the global scope has no "ceilf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 630 
Error (active) E0282 the global scope has no "cosf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 631 
Error (active) E0282 the global scope has no "coshf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cmath 631 
Error (active) E0282 the global scope has no "swprintf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 21 
Error (active) E0282 the global scope has no "swscanf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 21 
Error (active) E0282 the global scope has no "ungetwc" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 21 
Error (active) E0282 the global scope has no "vfwprintf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 22 
Error (active) E0282 the global scope has no "vswprintf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 22 
Error (active) E0282 the global scope has no "vwprintf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 22 
Error (active) E0282 the global scope has no "wcrtomb" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 23 
Error (active) E0282 the global scope has no "wprintf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 23 
Error (active) E0282 the global scope has no "wscanf" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 23 
Error (active) E0282 the global scope has no "wcsrtombs" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 24 
Error (active) E0282 the global scope has no "wcstol" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 24 
Error (active) E0282 the global scope has no "wcscat" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 24 
Error (active) E0282 the global scope has no "wcschr" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 25 
Error (active) E0282 the global scope has no "wcscmp" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 25 
Error (active) E0282 the global scope has no "wcscoll" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 25 
Error (active) E0282 the global scope has no "wcscpy" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 26 
Error (active) E0282 the global scope has no "wcscspn" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 26 
Error (active) E0282 the global scope has no "wcslen" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 26 
Error (active) E0282 the global scope has no "wcsncat" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 27 
Error (active) E0282 the global scope has no "wcsncmp" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 27 
Error (active) E0282 the global scope has no "wcsncpy" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 27 
Error (active) E0282 the global scope has no "wcspbrk" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\cwchar 28 
Error (active) E0282 the global scope has no "wcsrchr" RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools 
Error (active) E0260 explicit type is missing ('int' assumed) RPGWorld c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\xtgmath.h 212 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\Glsl.inl 40 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\Texture.hpp 159 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\VertexArray.hpp 64 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\VertexArray.hpp 72 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\VertexArray.hpp 88 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\VertexArray.hpp 104 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\Graphics\VertexArray.hpp 129 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 58 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 332 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 345 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 365 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 387 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 387 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 399 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 413 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 413 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 427 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 427 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 456 
Error (active) E0757 variable "size_t" is not a type name RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\packages\sfml-system.2.4.0.0\build\native\include\SFML\System\String.hpp 456 
Error (active) E0020 identifier "rand" is undefined RPGWorld c:\Users\Fazil\Documents\Visual Studio 2017\Projects\Local\RPGWorld\RPGWorld\Blocks.cpp 23 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory RPGWorld c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h 10 

내가 비주얼 스튜디오 2015 커뮤니티 에디션이 문제가 없었어요. 설치 프로그램에서 일부 구성 요소가 누락 되었습니까? 어떤 도움을 주시면 감사하겠습니다. 고맙습니다!

답변

26

Windows Universal CRT SDK 구성 요소를 설치하면 오류가 발생하며 레거시 Windows SDK에 대한 지원이 추가됩니다. 이는 비주얼 스튜디오 설치 프로그램을 사용하여 설치할 수 있습니다 문제가 지속

enter image description here

경우, 당신은 비주얼 스튜디오 프로젝트에서 대상 SDK를 변경해야합니다 : 윈도우 SDK 버전이 10.0.15063.0 여부를 확인.

프로젝트 -> 테스트 속성 -> 일반 -> Windows SDK 버전 -> 10.0.15053.0을 선택하십시오.

그러면 errno.h와 다른 표준 파일이 발견되어 컴파일됩니다.

+4

내말은 왜 표준 라이브러리 절반이 Win10SDK에서 중단되지 않았을까요? 이것을 알아 내서 고마워! – schulmaster

+2

이 링크는 또한 문제를 해결하는 데 도움이됩니다. https://stackoverflow.com/questions/43410631/visual-studio-2017-cant-find-windows-h – CraftedGaming

7

위의 대답으로 문제가 해결되지 않으면 Windows SDK 버전이 10.0.15063.0인지 확인하십시오.

프로젝트 -> 테스트 속성 -> 일반 -> 윈도우 SDK 버전 -이 솔루션을 다시 빌드 후> 10.0.15053.0

를 선택합니다.

+1

무엇인가의 이유로이 작업이 필요했습니다. 내 경우에는 SDK 8.1이 선택되었습니다. 10.0.15063.0으로 변경하면 효과가있었습니다. – ferosekhanj

0

동일한 문제가있었습니다. 내 경우에는 프로젝트가 다른 컴퓨터에서 Visual Studio 2017의 다른 릴리스를 사용하여 만들어 졌기 때문입니다.