error C4430: missing type specifier

在VS2012中生成时出错:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

这是因为如果在VC6.0中,如果没有指定返回值类型,编译器将其默认整型。但是VS中不支持默认整型。

解决方法如下:
打开:项目----项目属性----配置属性----C/C++----命令行,在附加选项那里添加 /wd4430 这个选项,应用------确定-----重新编译就可以了。

                                

发上等愿,结中等缘,享下等福;择高处立,就平处坐,向宽处行。
原文地址:https://www.cnblogs.com/lyx5990/p/5041926.html