所以我最近使用.NET 4.5(Visual Studio 2012专业版)返回到VC++,因为在与web dev,python和c#一起度过了永恒之后,新PC上出现了各种不相关的原因.我对整个语言非常熟悉,它在语法方面非常漂亮,我喜欢内存管理的自由,指针和引用.我用"你好世界"的东西和BAM重新开始了!错误.
由于许多其他人都遇到了这个问题,我在尝试编译和运行时收到了IntelliSense错误:
cannot open source file "SDKDDKVer.h"" and the fatal error: "error C1083: Cannot open include file: 'SDKDDKVer.h': No such file or directory
我也安装了Visual Studio 2010(C#Express),也许这搞砸了我的一些东西.我已经确认我的包含和lib的VC++目录都是正确的,并且是Microsoft和几乎任何C++开发人员推荐的.我试图安装最新的WinSDK(8.1)来获取标题及其所有功能,但我大约110%确定它不在那里.我现在正在为Win7安装SDK,希望它可以驻留在那里(虽然它确实需要很长时间.)
我的电脑有终端蓝屏的问题,仅针对任何问题,只需将机器单独放置15分钟即可解决,所以可能是硬盘问题?
你们有人可以帮忙吗?绝对任何抬头,居高临下,明显与否都将受到赞赏,并且无论如何都要感谢阅读.
编辑:@MichaelBurr要求构建日志,我无法将其全部发布在底部,所以我想我会在这里添加它.
Build started 14/03/2014 00:34:11.
1>Project "c:\Users\Brandon\documents\visual studio 2012\Projects\ConsoleApplication4\ConsoleApplication4\ConsoleApplication4.vcxproj" on node 2 (Build target(s)).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1>ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo …
Run Code Online (Sandbox Code Playgroud)