From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

<io.h> not available in Windows SDK 8.1

I need to compile an external library which requires some functions from Windows SDK.

The library uses _access() which requires <io.h>.

I can't find <io.h> in the include folder of Windows SDK 8.1 installed with CVI 2017.

 

How can I fix this?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 5
(3,525 Views)

Hello Vix,

 

io.h is not part of Windows SDK but rather VC runtime. You can use GetFileAttrs from Utility Library.

0 Kudos
Message 2 of 5
(3,487 Views)

Hi Constantin,

I don't know, but <io.h> is included in Windows SDK 10.

I opened a ticket with NI and I've been waiting for suggestion on how to update the SDK used by CVI 2017.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 5
(3,478 Views)

One more thing;

the same library uses

gmtime_s()

too which exists in SDK 10 but doesn't exist in SDK 8.1.

I think the only reasonable approach is configure CVI to use an updated release of SDK.

 

How can I get this?

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 5
(3,465 Views)

The only solution to this issue is to push NI to update Windows SDK included with CVI.

Feel free to support this idea if you think it's useful.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 5 of 5
(3,449 Views)