LabWindows™/CVI™ Compile Error: "Basetsd.h" Typedef Redefinition

Updated Sep 17, 2018

Reported In

Software

  • LabWindows/CVI 2013
  • LabWindows/CVI 2015
  • LabWindows/CVI 2017

Issue Details

  • I am compiling my code in LabWindows™/CVI™ and am seeing errors similar to the following in the error log:
"basetsd.h"(70,29) error: typedef redefinition with different types ('signed char' vs 'char')

 

  • I am updating my code to LabWindows™/CVI™ 2013 or later and getting an error due to the variable INT8 being defined in two different .h files, datasize.h and BaseTsd.h


Why is this occurring and how can I fix it?

 

 

Solution

This is related to a known issue in LabWindows/CVI 2013 and later. To resolve this error, modify datasize.h by commenting out the following line (line 104 by default):

typedef char INT8;

WAS THIS ARTICLE HELPFUL?

Not Helpful