LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

2017 Windows SDK compiler issues

I've tried to compiling code with LabWindows CVI 2017 that compiled on LabWindows CVI 2013.  I get errors when it is using the SDKHeaderFiles 8.1, would anyone know why?

 

 

Build Status (SDSR_VATS.prj - Release)
429_Test.c - 20 errors
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(31,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:31:
"minwinbase.h"(111,5) error: unknown type name '_Field_z_'
"minwinbase.h"(111,19) error: expected ';' at end of declaration list
"minwinbase.h"(112,5) error: unknown type name '_Field_z_'
"minwinbase.h"(112,15) error: duplicate member 'CHAR'
"minwinbase.h"(111,15) note: previous declaration is here
"minwinbase.h"(112,19) error: expected ';' at end of declaration list
"minwinbase.h"(128,5) error: unknown type name '_Field_z_'
"minwinbase.h"(128,20) error: expected ';' at end of declaration list
"minwinbase.h"(129,5) error: unknown type name '_Field_z_'
"minwinbase.h"(129,15) error: duplicate member 'WCHAR'
"minwinbase.h"(128,15) note: previous declaration is here
"minwinbase.h"(129,20) error: expected ';' at end of declaration list
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(38,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:38:
"fileapi.h"(934,75) error: expected identifier
"specstrings.h"(337,45) note: expanded from macro '__out_data_source'
"specstrings.h"(49,68) note: expanded from macro '_SAL_L_Source_'
1, 1 <scratch space>:61:1: note: expanded from here
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(38,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:38:
"fileapi.h"(934,75) error: expected ')'
"specstrings.h"(337,45) note: expanded from macro '__out_data_source'
"specstrings.h"(49,84) note: expanded from macro '_SAL_L_Source_'
"fileapi.h"(932,9) note: to match this '('
"fileapi.h"(954,50) error: expected identifier
"specstrings.h"(337,45) note: expanded from macro '__out_data_source'
"specstrings.h"(49,68) note: expanded from macro '_SAL_L_Source_'
1, 1 <scratch space>:61:1: note: expanded from here
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(38,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:38:
"fileapi.h"(954,50) error: expected ')'
"specstrings.h"(337,45) note: expanded from macro '__out_data_source'
"specstrings.h"(49,84) note: expanded from macro '_SAL_L_Source_'
"fileapi.h"(952,11) note: to match this '('
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(42,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:42:
"errhandlingapi.h"(88,1) error: unknown type name '__callback'
"errhandlingapi.h"(90,5) error: expected ';' after top level declarator
"errhandlingapi.h"(115,16) error: expected identifier
"specstrings.h"(481,78) note: expanded from macro '_Post_equals_last_error_'
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(42,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:42:
"errhandlingapi.h"(115,40) error: expected ';' after top level declarator
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(46,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:46:
"heapapi.h"(113,5) error: expected identifier
"specstrings.h"(392,35) note: expanded from macro '_Frees_ptr_opt_'
"specstrings.h"(49,68) note: expanded from macro '_SAL_L_Source_'
1, 1 <scratch space>:61:1: note: expanded from here
25, 1 In file included from c:\WorkData\VATS\5798 Automated Test System\src\429_Test.c:25:
"Windows.h"(214,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\windows.h:214:
"WinBase.h"(46,1) In file included from C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winbase.h:46:
"heapapi.h"(113,5) error: expected ')'
Build failed.

0 Kudos
Message 1 of 2
(2,217 Views)

Hi,

 

I was curious to know how were you able to solve the error from your list:

 

"fileapi.h"(934,75) error: expected ')'
"specstrings.h"(337,45) note: expanded from macro '__out_data_source'
"specstrings.h"(49,84) note: expanded from macro '_SAL_L_Source_'

 

I am getting similar issue in my application and would like to know solution. Please let me know your thoughts.

 

Thanks!

Riddhi

0 Kudos
Message 2 of 2
(1,851 Views)