Appendix A Errors and Warnings
©
National Instruments Corporation A-21 LabWindows/CVI Programmer Reference Manual
Illegal variable
declaration; only static
and extern variable
classes are valid in the
interactive window.
Compile
Error Change the variable declaration to be either
static or extern.
Import Variables cannot
be used in global
variable
initialization.
Compile
Error You used a global variable marked as
__import or declspec(dllimport) in
an initializer of another variable.
Include files nested too
deeply. Compile
Error Number of nested #include files exceeds
compiler limits. Reduce the number of
nested #include preprocessor directives.
Inconsistent linkage for
NAME previously declared
at POSITION.
Compile
Error Current declaration of the identifier is
inconsistent with a previous declaration of
the same identifier with regard to linkage.
Ensure that all declarations of the identifier
that you intend to be static do not conflict
with declarations without the static
keyword in the same scope.
Inconsistent type
declarations for
external symbol NAME in
modules FILE1 and FILE2.
Link Error You declared two or more external symbols
with the same name but not the same type.
Check each program file that contains an
external declaration of the symbol for type
consistency.
Initializer exceeds
bit-field width. Compile
Warni ng Number of bits necessary to represent the
initialization value of a bit field exceeds its
declared width. The compiler truncates the
initialization value to fit the bit field. The
initialization value must be smaller or the bit
field declaration must be wider.
Initializer must be
constant. Compile
Error Initializer must be an expression that
conforms to the semantics for a constant
expression.
Insufficient number of
arguments to FUNCTION. Compile
Error Function expects more arguments than you
passed to it. Check the function declaration
for the number of parameters to the function.
Table A-1. Error Messages (Continued)
Error Message Type E rror Comment
00ProRef.book : 07AppA.fm Page 21 Monday, March 9, 1998 3:23 PM