📄 cerrs.gml
字号:
.np
A
.kw goto
statement has referenced a label that is not defined in the function.
Add the necessary label or check the spelling of the label(s) in the function.
:MSGSYM. ERR_DUPLICATE_TAG
:MSGTXT. Tag '%s' already defined
:MSGJTXT. 僞僌'%s'偼婛偵掕媊偝傟偰偄傑偡
.np
All
.kw struct,
.kw union
and
.kw enum
tag names must be unique.
:MSGSYM. ERR_INVALID_DIMENSION
:MSGTXT. Dimension cannot be 0 or negative
:MSGJTXT. 師尦偑0傑偨偼晧偱偁傞偙偲偼偱偒傑偣傫
.np
The dimension of an array must be positive and non-zero.
:MSGSYM. ERR_DIMENSION_REQUIRED
:MSGTXT. Dimensions of multi-dimension array must be specified
:MSGJTXT. 懡師尦攝楍偺師尦偼巜掕偝傟側偗傟偽側傝傑偣傫
.np
All dimensions of a multiple dimension array must be specified.
The only exception is the first dimension which can declared as "[]".
:MSGSYM. ERR_MISSING_DATA_TYPE
:MSGTXT. Missing or misspelled data type near '%s'
:MSGJTXT. '%s'偺嬤偔偺僨乕僞宆偑側偄偐丆偮偯傝偑娫堘偭偰偰偄傑偡
.np
The compiler has found an identifier that is not a predefined type or the
name of a "typedef".
Check the identifier for a spelling mistake.
:MSGSYM. ERR_INVALID_STG_CLASS_FOR_PARM
:MSGTXT. Storage class of parameter must be register or unspecified
:MSGJTXT. 僷儔儊乕僞乕偺婰壇僋儔僗偼丆儗僕僗僞偐柍巜掕偱側偗傟偽側傝傑偣傫
.np
The only storage class allowed for a parameter declaration is
.kw register.
:MSGSYM. ERR_SYM_NOT_IN_PARM_LIST
:MSGTXT. Declared symbol '%s' is not in parameter list
:MSGJTXT. 愰尵偝傟偨僔儞儃儖'%s'偼僷儔儊乕僞乕儕僗僩偵偁傝傑偣傫
.np
Make sure that all the identifiers in the parameter list match those
provided in the declarations between the start of the function and the
opening brace "{".
:MSGSYM. ERR_PARM_ALREADY_DECLARED
:MSGTXT. Parameter '%s' already declared
:MSGJTXT. 僷儔儊乕僞乕'%s'偼婛偵愰尵偝傟偰偄傑偡
.np
A declaration for the specified parameter has already been processed.
:MSGSYM. ERR_INVALID_DECLARATOR
:MSGTXT. Invalid declarator
:MSGJTXT. 晄揔愗側愰尵巕偱偡
.np
A syntax error has occurred while parsing a declaration.
:MSGSYM. ERR_INVALID_STG_CLASS_FOR_FUNC
:MSGTXT. Invalid storage class for function
:MSGJTXT. 娭悢偵懳偟偰晄揔愗側婰壇僋儔僗偱偡
.np
If a storage class is given for a function, it must be
.kw static
or
.kw extern.
:MSGSYM. ERR_VAR_CANT_BE_VOID
:MSGTXT. Variable '%s' cannot be void
:MSGJTXT. 曄悢'%s'偼void宆偱偁傞偙偲偼偱偒傑偣傫
.np
You cannot declare a
.kw void
variable.
:MSGSYM. ERR_EXPR_MUST_BE_POINTER_TO
:MSGTXT. Expression must be 'pointer to ...'
:MSGJTXT. 幃偼'...傊偺億僀儞僞'偱側偗傟偽側傝傑偣傫
.np
An attempt has been made to de-reference (*) a variable or expression which
is not declared to be a pointer.
:MSGSYM. ERR_CANT_TAKE_ADDR_OF_RVALUE
:MSGTXT. Cannot take the address of an rvalue
:MSGJTXT. 塃曈抣(悢抣掕悢摍)偺傾僪儗僗傪偲傞偙偲偼偱偒傑偣傫
.np
You can only take the address of a variable or memory location.
:MSGSYM. ERR_NAME_NOT_FOUND_IN_STRUCT
:MSGTXT. Name '%s' not found in struct/union %s
:MSGJTXT. 柤慜%s偼struct/union %s 偺拞偵偁傝傑偣傫
.np
The specified identifier is not one of the fields declared in the
.kw struct
or
.kw union.
Check that the field name is spelled correctly, or that you are pointing
to the correct
.kw struct
or
.kw union.
:MSGSYM. ERR_MUST_BE_STRUCT_OR_UNION
:MSGTXT. Expression for '.' must be a 'structure' or 'union'
:MSGJTXT. .偵懳偡傞幃偼丆'峔憿懱'偐'嫟梡懱'偱側偗傟偽側傝傑偣傫
.np
The compiler has encountered the pattern "expression" "." "field_name"
where the expression is not a
.kw struct
or
.kw union
type.
:MSGSYM. ERR_MUST_BE_PTR_TO_STRUCT_OR_UNION
:MSGTXT. Expression for '->' must be 'pointer to struct or union'
:MSGJTXT. '->'偵懳偡傞幃偼丆'struct偐union傊偺億僀儞僞'偱側偗傟偽側傝傑偣傫
.np
The compiler has encountered the pattern "expression" "->" "field_name"
where the expression is not a pointer to
.kw struct
or
.kw union
type.
:MSGSYM. ERR_SYM_ALREADY_DEFINED
:MSGTXT. Symbol '%s' already defined
:MSGJTXT. 僔儞儃儖'%s'偼婛偵掕媊偝傟偰偄傑偡
.np
The specified symbol has already been defined.
:MSGSYM. ERR_FUNCTION_NOT_DEFINED
:MSGTXT. static function '%s' has not been defined
:MSGJTXT. 僗僞僥傿僢僋娭悢'%s'偑掕媊偝傟偰偄傑偣傫
.np
A prototype has been found for a
.kw static
function, but a definition for the
.kw static
function has not been found in the file.
:MSGSYM. ERR_RIGHT_OPERAND_IS_A_POINTER
:MSGTXT. Right operand of '%s' is a pointer
:MSGJTXT. '%s'偺塃僆儁儔儞僪偑億僀儞僞偱偡
.np
The right operand of "+=" and "&minus.=" cannot be a pointer.
The right operand of "&minus." cannot be a pointer unless the left
operand is also a pointer.
:MSGSYM. ERR_MUST_BE_SCALAR_TYPE
:MSGTXT. Type cast must be a scalar type
:MSGJTXT. 宆僉儍僗僩偼丆僗僇儔乕宆偱側偗傟偽側傝傑偣傫
.np
You cannot type cast an expression to be a
.kw struct,
.kw union,
array or function.
:MSGSYM. ERR_EXPECTING_LABEL
:MSGTXT. Expecting label for goto statement
:MSGJTXT. goto暥偵懳偡傞儔儀儖偑偁傞傋偒偱偡
.np
The
.kw goto
statement requires the name of a label.
:MSGSYM. ERR_DUPLICATE_CASE_VALUE
:MSGTXT. Duplicate case value '%s' found
:MSGJTXT. case偺抣'%s'偑2偮偁傝傑偡
.np
Every case value in a
.kw switch
statement must be unique.
:MSGSYM. ERR_FIELD_TOO_WIDE
:MSGTXT. Field width too large
:MSGJTXT. 僼傿乕儖僪偺暆偑戝偒偡偓傑偡
.np
The maximum field width allowed is 16 bits.
:MSGSYM. ERR_WIDTH_0
:MSGTXT. Field width of 0 with symbol not allowed
:MSGJTXT. 僔儞儃儖傪傕偮暆0偺僼傿乕儖僪偼嫋偝傟傑偣傫
.np
A bit field must be at least one bit in size.
:MSGSYM. ERR_WIDTH_NEGATIVE
:MSGTXT. Field width must be positive
:MSGJTXT. 僼傿乕儖僪偺暆偼惓偺悢偱側偗傟偽側傝傑偣傫
.np
You cannot have a negative field width.
:MSGSYM. ERR_INVALID_TYPE_FOR_FIELD
:MSGTXT. Invalid type specified for bit field
:MSGJTXT. 價僢僩僼傿乕儖僪偵晄揔愗側宆偑巜掕偝傟傑偟偨
.np
The types allowed for bit fields are
.kw signed
or
.kw unsigned
varieties of
.kw char,
.kw short
and
.kw int.
:MSGSYM. ERR_INCOMPLETE_TYPE
:MSGTXT. Variable '%s' has incomplete type
:MSGJTXT. 曄悢'%s'偺宆偼晄姰慡偱偡
.np
A full definition of a
.kw struct
or
.kw union
has not been given.
:MSGSYM. ERR_EXPR_MUST_BE_ARRAY
:MSGTXT. Subscript on non-array
:MSGJTXT. 旕攝楍傊偺揧偊帤偱偡
.np
One of the operands of "[]" must be an array.
:MSGSYM. ERR_INCOMPLETE_COMMENT
:MSGTXT. Incomplete comment
:MSGJTXT. 晄姰慡側僐儊儞僩偱偡
.np
The compiler did not find
.id */
to mark the end of a comment.
:MSGSYM. ERR_MUST_BE_MACRO_PARM
:MSGTXT. Argument for # must be a macro parm
:MSGJTXT. #傊偺堷悢偼丆儅僋儘丒僷儔儊乕僞偱側偗傟偽側傝傑偣傫
.np
The argument for the stringize operator "#" must be a macro parameter.
:MSGSYM. ERR_UNKNOWN_DIRECTIVE
:MSGTXT. Unknown preprocessing directive '#%s'
:MSGJTXT. 慜張棟媅帡柦椷'#%s'偺堄枴偑晄柧偱偡
.np
An unrecognized preprocessing directive has been encountered.
Check for correct spelling.
:MSGSYM. ERR_INVALID_INCLUDE
:MSGTXT. Invalid #include directive
:MSGJTXT. 晄揔愗側#include媅帡柦椷偱偡
.np
A syntax error has been encountered in a
.id #include
directive.
:MSGSYM. ERR_TOO_FEW_MACRO_PARMS
:MSGTXT. Not enough parameters given for macro '%s'
:MSGJTXT. 儅僋儘'%s'偵梌偊傜傟偨僷儔儊乕僞偑晄廫暘偱偡
.np
You have not supplied enough parameters to the specified macro.
:MSGSYM. ERR_NOT_EXPECTING_RETURN_VALUE
:MSGTXT. Not expecting a return value for function '%s'
:MSGJTXT. 娭悢'%s'偵懳偟偰栠傝抣偼側偄偼偢偱偡
.np
The specified function is declared as a
.kw void
function.
Delete the
.kw return
statement, or change the type of the function.
:MSGSYM. ERR_EXPR_HAS_VOID_TYPE
:MSGTXT. Expression has void type
:MSGJTXT. 幃偼void宆偱偡
.np
You tried to use the value of a
.kw void
expression inside another expression.
:MSGSYM. ERR_CANT_TAKE_ADDR_OF_BIT_FIELD
:MSGTXT. Cannot take the address of a bit field
:MSGJTXT. 價僢僩僼傿乕儖僪偺傾僪儗僗偼庢傟傑偣傫
.np
The smallest addressable unit is a byte.
You cannot take the address of a bit field.
:MSGSYM. ERR_NOT_A_CONSTANT_EXPR
:MSGTXT. Expression must be constant
:MSGJTXT. 幃偼掕悢偱側偗傟偽側傝傑偣傫
.np
The compiler expects a constant expression.
This message can occur during static initialization if you are
trying to initialize a non-pointer type with an address expression.
:MSGSYM. ERR_CANT_OPEN_FILE
:MSGTXT. Unable to open '%s'
:MSGJTXT. '%s'傪僆乕僾儞偡傞偙偲偑偱偒傑偣傫
.np
The file specified in an
.id #include
directive could not be located.
Make sure that the file name is spelled correctly, or that the
appropriate path for the file is included in the list of paths
specified in the
.id &incvarup
environment variable or the "i=" option on the command line.
:MSGSYM. ERR_TOO_MANY_MACRO_PARMS
:MSGTXT. Too many parameters given for macro '%s'
:MSGJTXT. 儅僋儘'%s'偵梌偊傜傟偨僷儔儊乕僞偑懡偡偓傑偡
.np
You have supplied too many parameters for the specified macro.
:MSGSYM. ERR_MODIFIERS_DISAGREE
:MSGTXT. Modifiers disagree with previous definition of '%s'
:MSGJTXT. 廋忺巕偑'%s'偺慜偺掕媊偲堦抳偟傑偣傫
.np
You have more than one definition or prototype for the variable or
function which have different type modifiers.
:MSGSYM. ERR_CANT_USE_TYPEDEF_AS_VAR
:MSGTXT. Cannot use typedef '%s' as a variable
:MSGJTXT. typedef'%s'偼曄悢偲偟偰巊偊傑偣傫
.np
The name of a typedef has been found when an operand or operator is expected.
If you are trying to use a type cast, make sure there are parentheses
around the type, otherwise check for a spelling mistake.
:MSGSYM. ERR_INV_STG_CLASS_FOR_GLOBAL
:MSGTXT. Invalid storage class for non-local variable
:MSGJTXT. 旕嬊強曄悢偵懳偡傞晄揔愗側婰壇僋儔僗偱偡
.np
A variable with module scope cannot be defined with the storage class of
.kw auto
or
.kw register.
:MSGSYM. ERR_INV_TYPE
:MSGTXT. Invalid type
:MSGJTXT. 晄揔愗側宆偱偡
.np
An invalid combination of the following keywords has been specified in a
type declaration:
.kw const,
.kw volatile,
.kw signed,
.kw unsigned,
.kw char,
.kw int,
.kw short,
.kw long,
.kw float
and
.kw double.
:MSGSYM. ERR_EXPECTING_DECL_BUT_FOUND
:MSGTXT. Expecting data or function declaration, but found '%s'
:MSGJTXT. 僨乕僞傑偨偼娭悢偺愰尵偑偁傞偼偢偱偡偑丆'%s'偑偁傝傑偡
.np
The compiler is expecting the start of a data or function declaration.
If you are only part way through a function, then you have too many
closing braces "}".
:MSGSYM. ERR_INCONSISTENT_TYPE
:MSGTXT. Inconsistent return type for function '%s'
:MSGJTXT. 娭悢'%s'偵懳偡傞柕弬偟偨栠傝宆偱偡
.np
Two prototypes for the same function disagree.
:MSGSYM. ERR_MISSING_OPERAND
:MSGTXT. Missing operand
:MSGJTXT. 僆儁儔儞僪偑偁傝傑偣傫
.np
An operand is required in the expression being parsed.
:MSGSYM. ERR_OUT_OF_MEMORY
:MSGTXT. Out of memory
:MSGJTXT. 儊儌儕晄懌偱偡
.np
The compiler has run out of memory to store information about the file
being compiled.
Try reducing the number of data declarations and or the size of the file
being compiled.
Do not
.id #include
header files that are not required.
.np
For the 16-bit C compiler,
the "/d2" switch causes the compiler to use more memory.
Try compiling with the "/d1" switch instead.
:MSGSYM. ERR_INV_CHAR_CONSTANT
:MSGTXT. Invalid character constant
:MSGJTXT. 晄揔愗側暥帤掕悢偱偡
.np
This message is issued for an improperly formed character constant.
:MSGSYM. ERR_CANT_USE_VOID
:MSGTXT. Cannot perform operation with pointer to void
:MSGJTXT. void傊偺億僀儞僞偱墘嶼傪幚峴偡傞偙偲偼偱偒傑偣傫
.np
You cannot use a "pointer to void" with the operators +, &minus., ++,
&minus.&minus., += and &minus.=.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -