Error c4430: Missing type specifier-int assumed. Note: C ++ does not support default-int

Source: Internet
Author: User

When writing a dynamic database, the system always prompts error 4430 and didn't pay too much attention to it at first. Later I checked and found that the returned data type was not defined during the declaration.

Error c4430 often appears in vs2005, especially for beginners who just transferred from vs6.0, because in vs6.0, when there is no type identifier, the default value is int type, in vs2005, the compiler has been improved to impose more stringent restrictions. Developers must explicitly specify the data type.

You can use either of the following solutions:

  1. # Pragma warning (Disable: 4430)
  2. [Configuration properties] [C/C ++] [command line], add/wd4430
  3. Adds a return type to the function (recommended ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.