http://blog.csdn.net/araecall/article/details/5583644
error C2371: ‘XXX’ : redefinition; Different basic types
define a structure, stored in a separate.h file, compile the error above, remove the #include “structure filename” from the.cpp file that instantiates the structure, and solve the problem.
later in a separate file and instantiate a such structure, the results and the above problems, structure of the object name is the same, in order to avoid the problems caused by this, and another. The CPP file renaming structure of the object, the problem was not solved, then the structure defined. H file, plus the “# pragma once”, compiled through.
error C2371: ‘XXX’ : redefinition; Different basic types
define a structure, stored in a separate.h file, compile the error above, remove the #include “structure filename” from the.cpp file that instantiates the structure, and solve the problem.
later in a separate file and instantiate a such structure, the results and the above problems, structure of the object name is the same, in order to avoid the problems caused by this, and another. The CPP file renaming structure of the object, the problem was not solved, then the structure defined. H file, plus the “# pragma once”, compiled through.
Read More:
- C++ ERROR redefinition of ‘class ***’
- Error c2011: “a certain class”: redefinition of “class” type
- C++ —Return multiple values of different types
- Error: redefinition of class XXX
- [Solved] Logon failed, use ctrl+c to cancel basic credential prompt. unable to access
- Solutions to error c2143: syntax error: missing ‘;’ before ‘type’ in C + + program compilation
- Error resolution: Error: redefinition of class xxx
- Oracle 12C installation process related errors and Solutions
- Windows update error 8024401c – one of the solutions
- error C1189: #error : Please use the /MD switch for _ Afxdll builds — solutions
- Analysis of compilation errors of “error conflicting types for function”
- C language string processing error warning, c4996, sprintf, predicted, c4996, strcpy, c4996, strcat
- Unsupported operation types unsupported operation data types
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- Typeerror: UFUNC ‘isn’t supported for the input types
- Cannot find module ‘internal / util / types’ appears during gulp build
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- VTK basic learning
- Common problems and basic concept knowledge of OpenGL
- Error in Git operation: http basic: access denied solution