本文介绍了使用Microsoft SDK文件编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在进行构建,其中一条早期消息是:

I'm doing a build and one of the early messages is:

WINVER not defined.  Defaulting to 0x0600 (Windows Vista)

然后我用这个文件编译错误:

and then I get compile errors with this file:

c:\program files\microsoft sdks\windows\v6.0a\include\netioapi.h

三个错误是:

error C2146: syntax error : missing ';' before identifier...

error C4430: missing type specifier - int assumed.  Note: C++ does not support default-int

error C4430: missing type specifier - int assumed.  Note: C++ does not support default-int

现在从最后两个我可以看出它与我正在使用的编译器版本有关。 我正在使用VS2008。 在这些文件的路径中,我看到"v6.0a"所以我想知道这个SDK是否适用于Visual C ++ 6.0?

Now from the last two I can tell it is something with the version of compiler I am using.  I am using VS2008.  In the path to these files I see "v6.0a" and so I wonder if this SDK is for Visual C++ 6.0?

这是真的吗? 我必须安装一个新版本的SDK,与VS2008兼容吗?

Is this true?  I must install a new version of the SDK, compatible with VS2008?

推荐答案


这篇关于使用Microsoft SDK文件编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 00:29