LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI appears to be missing headers from C standard library

I am trying to use a driver that #includes <wchar.h>, which is supposed to be included in the C standard library (see https://en.wikipedia.org/wiki/C_standard_library). However, my program won't compile, saying <wchar.h> is not found. Looking in 
"C:\Program Files (x86)\National Instruments\CVI2015\include\ansi" I notice that most of the standard library headers are present, but several are missing, including <wchar.h>. 

 

Is there a way to update LabWindows to a more complete version of C, or point it to the full ANSI C standard library?

0 Kudos
Message 1 of 3
(2,753 Views)

Could you try moving the include statement higher up in the list of include statements? People have seen difficulties with this in the past. 

https://forums.ni.com/t5/LabWindows-CVI/unknown-type-name-wchar-t/m-p/2978413#M68142

0 Kudos
Message 2 of 3
(2,708 Views)

As of 2017, CVI does not provide a wchar.h include file, so moving the include statement probably will not help.

 

The link given references a somewhat different issue, i.e., using variables of type wchar_t; this definition can be found in the include file CVI2017/include/ansi/ctype.h.

Message 3 of 3
(2,700 Views)