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:
- [Solved] error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
- Maven [error] no longer supports source option 5. Please use version 7 or later
- Solution of IntelliJ idea running command line is too long [Two Methods]
- [IDEA] Maven Run Project Error: Diamond operator is not supported in – source 1.5″
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1
- Eclipse C/C++ Error: launch failed,binary not found
- [Solved] maven 3.5.0 combined with eclipse suggests solutions to lambda expressions are allowed only at source level 1.8 or above errors
- How to Solve IDEA maven Error:Perhaps you are running on a JRE rather than a JDK
- TP5 variable type error: array [How to Solve]
- [Solved] Syntax error, parameterized types are only available if source level is 1.5