The most common 20 types of VC ++ (MFC) Compilation error messages

Source: Internet
Author: User

1. Fatal error c1010: unexpected end of file while looking for precompiled header directive.
When searching for the pre-compiled header file path, the end of the file should not be encountered. (Generally no # include "stdafx. H ")

2. Fatal error c1083: cannot open include file: 'r ....... H': no such file or directory
You cannot open the file "r ....... H ": there is no such file or directory.

3. Error c2011: 'C ...... ': 'Class' type redefinition
Class "C ......" Redefinition.

4. Error c2018: unknown character '0xa3'
Unknown character '0xa3 '. (Generally Chinese characters or Chinese Punctuation Marks)

5. Error c2057: Expected constant expression
It is expected to be a constant expression. (Usually in the case Branch of the switch statement)

6. Error c2065: 'idd _ mydialog ': Undeclared identifier
"Idd_mydialog": Undeclared identifier.

7. Error c2082: redefinition of formal parameter 'breset'
The function parameter "breset" is redefined in the function body.

8. Error c2143: syntax error: Missing ': 'before '{'
Syntax error: ";" is missing before "{".

9. Error c2146: syntax error: Missing '; 'before identifier' DC'
Syntax error: ";" is lost before "DC".

10. Error c2196: Case value '69' already used
The Value 69 has been used. (Usually in the case Branch of the switch statement)

11. Error c2509: 'ontimer': member function not declared in 'chelloview'
The member function "ontimer" is not declared in "chelloview.

12. Error c2511: 'reset': overloaded member function 'void (INT) 'not found in' B'
The overloaded function "Void reset (INT)" cannot be found in class "B.

13. Error c2555: 'B: f1': overriding virtual function differs from 'A: f1' only by return type or calling convention
Class B's heavy load on function F1 of the same name in Class A is only based on the difference in the return value or call conventions.

14. Error c2660: 'settimer': function does not take 2 parameters
The "settimer" function does not pass two parameters.

15. Warning c4035: 'f ...... ': No Return Value
"F ......" The return statement does not return values.

16. Warning c4553: '=': operator has no effect; did you intend '= '?
The operator "=" with no effect; is it changed to "= "?

17. Warning c4700: local variable 'breset' used without having been initialized
The local variable "breset" is used without initialization.

18. Error c4716: 'cmyapp: initinstance': must return a value
The "cmyapp: initinstance" function must return a value.

19. Link: Fatal error lnk1168: cannot open debug/p1.exe for writing
Connection error: Unable to open the p1.exe file to rewrite the content. (P1.exe is still running, not closed)

20. Error lnk2001: unresolved external symbol "public: Virtual _ thiscall C ...... ::~ C ...... (Void )"
External symbols (variables, functions, etc.) that are not implemented are found during connection ).

 

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.