Today, when the library was compiled, the problem emerged with unqualified-id before numeric Constant, as the variable is repeatedly defined, with the same name as the macro definition, and the following pattern:
a header file defines an interface body,
struct {
int Size;
}
a header file defines an interface body,
struct {
int Size;
}
then define the macro in another file as follows:
define Size
At this time will appear above error, really need to use the common custom naming principles, or really hard to check.
Today, when the library was compiled, the problem emerged with unqualified-id before numeric Constant, as the variable is repeatedly defined, with the same name as the macro definition, and the following pattern:
A header file defines an interface body,
The class XXXClass {
Const static int MAX_PATTERN_NUM = 1024;
}
Then define the macro in another file as follows:
# define MAX_PATTERN_NUM 100
This is where the above error occurs
Read More:
- Expected unqualified ID before string constant
- error: expected unqualified-id before ‘.’ token
- error: expected unqualified-id before ‘int’
- error: expected unqualified-id before ‘dynamic_cast’
- Arithmetic overflow error converting numeric to data type numeric.
- VS2013 error RC2108: expected numerical dialog constant
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- There is a solution to the problem: severity = corrected, type = physical layer, id = 00e5 or id = 00e8 (receiver ID) under Ubuntu
- Resolve the problem of “event ID 4107” or “event ID 11” errors recorded in the application logs of windows and windows server
- Error c2059: syntax error: constant solution
- error: initializer element is not constant [How to Solve]
- c1: Commend line error D8021 :invalid numeric argment ‘/Wno-cpp’
- error C2137: empty character constant
- Routing Error uninitialized constant TransController
- Generate template asp.net Cs1010: newline in constant
- Error c2137 of C language: empty character constant (Fixed)
- The use of Chinese characters in Qt and the solution to the “error C2001: newline in constant” problem
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- How to modify TeamViewer ID
- Event id = 4321 error on server