Appendix A Errors and Warnings
LabWindows/CVI Programmer Reference Manual A-8
©
National Instruments Corporation
Calling conventions have
no effect on variables;
calling convention
ignored. The position of
the calling convention
modifier may be
incorrect.
Compile
Warni ng You placed a calling convention keyword
before a variable name.
For function pointers, you must place the
calling convention to the left of the "*", for
example:
int (__cdecl * funptr)();
Cannot concatenate wide
and regular string
literals.
Compile
Warni ng Make sure the string literals you concatenate
are either both wide string literals or regular
string literals.
Cannot free: memory not
allocated by malloc() or
calloc().
Fatal
Run-timeError Pointer value you passed to the function
free is invalid because it does not point to
dynamic memory allocated by malloc or
calloc. free can deallocate only pointers
you obtain from one of these two functions.
Cannot generate glue for
a function without a
prototype: NAME.
Glue Code
Generation
Error
In order to generate glue code for a DLL
function, you must specify a complete
prototype for the function. You must specify
the types of the parameters in the prototype.
Cannot generate glue for
a static function:
FUNCTION.
Glue Code
Generation
Error
You cannot export static functions in a DLL;
so it is useless to generate glue code for
them.
Cannot generate glue for
a variable argument
function: FUNCTION.
Glue Code
Generation
Error
In LabWindows/CVI for Windows 3.1, you
cannot use DLL functions that accept a
variable number of arguments.
Cannot initialize
undefined TYPE. Compile
Error You attempted to initialize a declaration of
an incomplete struct or union type, such
as a struct or union type whose members
you have not yet specified. Ensure that the
initialization appears after the full struct or
union declaration.
Cannot link variable
NAME to import library
without __import keyword
in declaration.
Link Error Variable that you have declared as extern is
defined in a DLL import library, but you did
not include the __import qualifier in the
declaration.
Table A-1. Error Messages (Continued)
Error Message Type E rror Comment
00ProRef.book : 07AppA.fm Page 8 Monday, March 9, 1998 3:23 PM