Incompatible Types Warning in LabWindows™/CVI™ Using Debug or Debug64

Updated Oct 10, 2018

Reported In

Software

  • LabWindows/CVI

Programming Language

  • C

Issue Details

I sometimes receive an incompatible types or incompatible pointer types warning in LabWindows™/CVI™, depending on whether I use Debug or Debug64 build configuration. Why do I receive these errors, and what is the difference between Debug and Debug64?

Solution

An incompatible types warning can occur if you are trying to pass data between data types of different sizes.

The Debug build configuration builds a 32-bit version of your executable, DLL, or static library, whereas Debug64 builds a 64-bit version. Certain data types have a size that is dependent on the build configuration, so an incompatible type error may or may not occur depending on your build configuration setting. For example, the data type size_t is 32-bits if built using the Debug setting, but 64-bits if built using the Debug64 setting.

Additional Information

The following C data types have sizes that are dependent on the build configuration:

size_t
ssize_t
intptr_t
ptrdiff_t
uintptr_t


See the full table of C Data Types for more information on the sizes of different data types in LabWindows/CVI.

WAS THIS ARTICLE HELPFUL?

Not Helpful