我是靠谱客的博主 糟糕红酒,这篇文章主要介绍VS2010 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这个问题

解决方法:

右击工程,选择properties -> configuration properties -> C/C++ -> commandline 
在additional options 打入 /wd4430

如果出现

 atlcore.h(40): fatal error C1189: #error :  This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.

解决方法:

如果有预编译头文件Stdafx.h在该文件的前面加入

#define _WIN32_WINNT 0x0501

如果没有该头文件,则可以在主文件xx.cpp的最前面(所有的头文件的前面)加入

#define _WIN32_WINNT 0x0501

最后

以上就是糟糕红酒最近收集整理的关于VS2010 missing type specifier - int assumed. Note: C++ does not support default-int的全部内容,更多相关VS2010内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(106)

评论列表共有 0 条评论

立即
投稿
返回
顶部