PCC-02329: found reference to undeclared function

PCC-02329: found reference to undeclared function

Cause: A function was referenced that was not declared. All function references must be declared.

Action: Declare the function.

PCC-02328: undefined struct member

PCC-02328: undefined struct member

Cause: A structure component was referenced that was not declared as part of the structure.

Action: Redefine the structure member.

PCC-02327: struct or struct pointer required

PCC-02327: struct or struct pointer required

Cause: A scalar host variable was used in a context where a structure (or its pointer) is required.

Action: Make the host variable a structure or add more scalar host variables to satisfy the SQL syntax requirements.

PCC-02326: illegal structure reference operation

PCC-02326: illegal structure reference operation

Cause: A structure component using invalid syntax was referenced. For example, a -lamp;gt; operator was used instead of a required `. operator.

Action: Correct the invalid reference.

PCC-02325: illegal indirection operation

PCC-02325: illegal indirection operation

Cause: An attempt was made to use a non-pointer type as a pointer.

Action: Rewrite the expression.

PCC-02324: found variable name used as a typedef name

PCC-02324: found variable name used as a typedef name

Cause: The name of a variable was found where a typedef was expected.

Action: Rewrite the expression and specify the correct typedef reference.

PCC-02323: found typedef name used in an expression (expecting a value)

PCC-02323: found typedef name used in an expression (expecting a value)

Cause: The name of a typedef was found where a variable was expected.

Action: Rewrite the expression and remove the reference to the typedef.

PCC-02322: found undefined identifier

PCC-02322: found undefined identifier

Cause: An identifier used in a SQL statement was not defined. For example, a cursor name was referenced that had not been declared, or in a DECLARE CURSOR statement, a statement name was used that had not been PREPAREd.

Action: Provide a declaration for the variable and or or its type identifier.

PCC-02321: only subtraction between two pointers is permitted

PCC-02321: only subtraction between two pointers is permitted

Cause: Pointer values cannot be added, multiplied, or divided. The only arithmetic operation permitted with pointers is subtraction.

Action: Recode to avoid this error message.

PCC-02320: arithmetic expression does not have correct operand types

PCC-02320: arithmetic expression does not have correct operand types

Cause: The arithmetic expression must be specified with integral types.

Action: Rewrite the expression using integral types.

PCC-02319: expression type does not match usage

PCC-02319: expression type does not match usage

Cause: The type of a variable does not match is usage. For example, in dynamic SQL, a host variable containing the text of a SQL statement must be declared as a C character type or be equivalenced to the SQL type STRING.

Action: Remove the declaration.

PCC-02318: missing type expression

PCC-02318: missing type expression

Cause: The specified expression is missing the declaration of a type.

Action: Specify a type for the expression.

PCC-02317: illegal cast type expression

PCC-02317: illegal cast type expression

Cause: An illegal cast is present in the expression.

Action: Remove the illegal cast.

PCC-02316: illegal operator in constant expression

PCC-02316: illegal operator in constant expression

Cause: A non-arithmetic operator was present in a constant expression.

Action: Rewrite the expression to eliminate the non-arithmetic operator.

PCC-02315: cannot evaluate expression as constant

PCC-02315: cannot evaluate expression as constant

Cause: The specified expression does not evaluate to a constant. Such expressions are required, for example, as the length of a VARCHAR.

Action: Replace the expression with one that does evaluate to a constant integer.

PCC-02314: cannot evaluate constant sizeof expression

PCC-02314: cannot evaluate constant sizeof expression

Cause: A SIZEOF operator was used where a precompiler expression was expected. For example, as the length of a varchar.

Action: Eliminate the SIZEOF operator in this instance.

PCC-02313: malformed VARCHAR declaration - missing length

PCC-02313: malformed VARCHAR declaration - missing length

Cause: When a VARCHAR is declared, a length specification is mandatory. For example, the following VARCHAR declaration is meaningless, hence illegal: VARCHAR v1((;

Action: Specify the length for each declared VARCHAR.

PCC-02312: arrays of VARCHAR greater than 2 dimensions not allowed

PCC-02312: arrays of VARCHAR greater than 2 dimensions not allowed

Cause: A VARCHAR variable having more that 2 dimensions was declared. Multidimensional arrays are not supported as host variables.

Action: Recode the application to remove multidimensional array usage.

PCC-02311: cannot have VARCHAR bit fields

PCC-02311: cannot have VARCHAR bit fields

Cause: Host variables cannot contain bit fields.

Action: Recode the application to remove the bit fields.

PCC-02310: formal parameter VARCHARs should be declared as pointers

PCC-02310: formal parameter VARCHARs should be declared as pointers

Cause: Many C compilers allow structures to be passed to and returned from functions. Although a VARCHAR is implemented as a C struct, VARCHARs must be passed to a function as pointers.

Action: Take the address of a VARCHAR when it is passed to a function. See the example in the section Referencing VARCHAR Variables in the Programmer s Guide to the Oracle Precompilers.