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

Error when generating in VS2008: error C4430: missing type specifier-int assumed. Note: C++ does not support default-int

This is because in VC6, if the specified return value type is not displayed, the compiler treats it as the default integer type. But vs2005 does not support the default integer type.

The solution is as follows:
open: project-project properties-configuration properties-C/C++-command line, add the option /wd4430 in the additional options.

 

Similar Posts: