1
Visual Studio Community 2015でデフォルトのDirectX 11プロジェクトを構築しようとしましたが、結果としてcmath、corecrt.h、cstdio、cstdlib、cstring、cwcharに2000以上のエラーが発生しましたさらにいくつか。Visual Studio 14.0とWindowsキットのエラーでフォルダが含まれる
私が構築しようとすると、これは私が受け取ったエラーリストがあった。
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(28): error C2371: 'crtGlob_t': redefinition; different basic types
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(28): note: see declaration of 'crtGlob_t'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(43): error C2371: '_LDOUBLE': redefinition; different basic types
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(43): note: see declaration of '_LDOUBLE'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(47): error C2371: '_LDBL12': redefinition; different basic types
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(47): note: see declaration of '_LDBL12'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(51): error C2011: '_FloatOutStruct': 'struct' type redefinition
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(51): note: see declaration of '_FloatOutStruct'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(65): error C2365: 'INTRNCVT_OK': redefinition; previous definition was 'enumerator'
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(65): note: see declaration of 'INTRNCVT_OK'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(66): error C2365: 'INTRNCVT_OVERFLOW': redefinition; previous definition was 'enumerator'
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(66): note: see declaration of 'INTRNCVT_OVERFLOW'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(68): error C2365: 'INTRNCVT_UNDERFLOW': redefinition; previous definition was 'enumerator'
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(68): note: see declaration of 'INTRNCVT_UNDERFLOW'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(68): error C2371: 'INTRNCVT_STATUS': redefinition; different basic types
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(68): note: see declaration of 'INTRNCVT_STATUS'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(70): error C2011: '_strflt': 'struct' type redefinition
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\corecrt.h(70): note: see declaration of '_strflt'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(54): error C2146: syntax error: missing ';' before identifier '_CRTALLOCATOR'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(61): error C2086: 'int _ACRTIMP': redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(54): note: see declaration of '_ACRTIMP'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(61): error C2146: syntax error: missing ';' before identifier '_CRT_JIT_INTRINSIC'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(68): error C2144: syntax error: 'int' should be preceded by ';'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(68): error C2086: 'int _ACRTIMP': redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(54): note: see declaration of '_ACRTIMP'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(74): error C2086: 'int _ACRTIMP': redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(54): note: see declaration of '_ACRTIMP'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(74): error C2146: syntax error: missing ';' before identifier '_CRTALLOCATOR'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(80): error C2144: syntax error: 'void' should be preceded by ';'
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
誰にもこの問題が発生していますか?
P.S.私はWindows 10 64ビットを使用しています。
数日前、WindowsのダウンロードからWDKをインストールしましたが、以前にインストールしたVisual Studioは動作しませんでした。しかし、WDKをVisual Studioのアップグレードツールで直接再インストールすることで、私の問題は解決しましたが、見た目は異なっていました。 – maxik