LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Porting to VS7.net caused errors with <io.h> functions

When we moved our software from CVI to VS7.net, we were having linker problems with these io functions:
write()
open()
close()

When we converted it to the Microsoft versions:
_write()
_open()
_close()
It linked, but I saw some warnings of undefined prototypes.

The documentation said to to include , and in doing so, the compiler gave MANY compile problems.

When we removed #include and replaced it with , we had to add other etc. To make it compile. Then it did compile/link.

Is there a better way to fix this problem?
0 Kudos
Message 1 of 2
(2,623 Views)
Hello

CVI and VC++ have their own set of ansi libraries and you cannot mix and match the two. You would have to use the ANSI functions ( and their apporpriate libraries and headers ) based on the IDE. Check out pg 39 of 91 of the CVI programmers reference manual.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,623 Views)