cerrs.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 1,814 行 · 第 1/5 页

GML
1,814
字号
.np
An extra
.id }
has been found which cannot be matched up with an earlier
.id {.
:MSGSYM. ERR_MISPLACED_ELIF
:MSGTXT. Misplaced #elif directive
:MSGJTXT. #elif媅帡柦椷偺埵抲偑娫堘偭偰偄傑偡
.np
The
.id #elif
directive must be inside an
.id #if
preprocessing group and before the
.id #else
directive if present.
:MSGSYM. ERR_MISPLACED_ELSE
:MSGTXT. Misplaced #else directive
:MSGJTXT. #else媅帡柦椷偺埵抲偑娫堘偭偰偄傑偡
.np
The
.id #else
directive must be inside an
.id #if
preprocessing group and follow all
.id #elif
directives if present.
:MSGSYM. ERR_MISPLACED_ENDIF
:MSGTXT. Misplaced #endif directive
:MSGJTXT. #endif媅帡柦椷偺埵抲偑娫堘偭偰偄傑偡
.np
A
preprocessing directive has been found without a matching
.id #if
directive.
You either have an extra
or you are missing an
.id #if
directive earlier in the file.
:MSGSYM. ERR_ONLY_1_DEFAULT
:MSGTXT. Only 1 DEFAULT per switch allowed
:MSGJTXT. 1偮偺switch暥偵偼1偮偺DEFAULT偩偗偑擣傔傜傟傑偡
.np
You cannot have more than one
.kw default
label in a
.kw switch
statement.
:MSGSYM. ERR_EXPECTING_BUT_FOUND
:MSGTXT. Expecting '%s' but found '%s'
:MSGJTXT. '%s'偑偁傞偼偢偱偡偑丆'%s'偑偁傝傑偟偨
.np
A syntax error has been detected.
The tokens displayed in the message should help you to determine the problem.
:MSGSYM. ERR_TYPE_MISMATCH
:MSGTXT. Type mismatch
:MSGJTXT. 宆偑堦抳偟傑偣傫
.np
For pointer subtraction, both pointers must point to the same type.
For other operators, both expressions must be assignment compatible.
:MSGSYM. ERR_UNDECLARED_SYM
:MSGTXT. Symbol '%s' has not been declared
:MSGJTXT. 僔儞儃儖'%s'偑愰尵偝傟傑偣傫偱偟偨
.np
The compiler has found a symbol which has not been previously declared.
The symbol may be spelled differently than the declaration, or you may
need to
.id #include
a header file that contains the declaration.
:MSGSYM. ERR_NOT_A_FUNCTION
:MSGTXT. Expression is not a function
:MSGJTXT. 幃偑娭悢偱偼偁傝傑偣傫
.np
The compiler has found an expression that looks like a function call, but
it is not defined as a function.
:MSGSYM. ERR_CANNOT_MODIFY_CONST
:MSGTXT. Constant variable cannot be modified
:MSGJTXT. 掕悢曄悢偼曄峏偱偒傑偣傫
.np
An expression or statement has been found which modifies a variable which
has been declared with the
.kw const
keyword.
:MSGSYM. ERR_MUST_BE_LVALUE
:MSGTXT. Left operand must be an 'lvalue'
:MSGJTXT. 嵍曈偼'嵍曈抣'偱側偗傟偽側傝傑偣傫
.np
The operand on the left side of an "=" sign must be a variable or memory
location which can have a value assigned to it.
:MSGSYM. ERR_SYM_ALREADY_DEFINED_AS_VAR
:MSGTXT. '%s' is already defined as a variable
:MSGJTXT. '%s'偼婛偵曄悢偲偟偰掕媊偝傟偰偄傑偡
.np
You are trying to declare a function with the same name as a previously
declared variable.
:MSGSYM. ERR_EXPECTING_ID
:MSGTXT. Expecting identifier
:MSGJTXT. 幆暿巕偑偁傞傋偒偱偡
.np
The token following "->" and "." operators must be the name of an
identifier which appears in the struct or union identified by the
operand preceding the "->" and "." operators.
:MSGSYM. ERR_LABEL_ALREADY_DEFINED
:MSGTXT. Label '%s' already defined
:MSGJTXT. 儔儀儖'%s'偼婛偵掕媊偝傟偰偄傑偡
.np
All labels within a function must be unique.
:MSGSYM. ERR_UNDEFINED_LABEL
:MSGTXT. Label '%s' not defined in function
:MSGJTXT. 儔儀儖'%s'偼娭悢偺拞偱掕媊偝傟偰偄傑偣傫
.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.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?