LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Does CVI 6.0 support C++ ?

I would like to use the CVI enviornment to do some C++ tutorials since the MS Visual C++ SW is so unfriendly.
I'm not able to get the simplest of C++ programs to compile. The compiler chokes on COUT & CIN with IOSTREAM.H (all lower case). I've tried setting the includes to the MS includes without success.

When istalling CVI it show C/C++ as options.

What do I need to do?

Thanks,

Rick
0 Kudos
Message 1 of 3
(2,578 Views)
The CVI compiler supports ANSI C, not C++. You cannot use CVI to compile C++ code.
There are a couple of ways CVI works together with C++. To use existing C++ code within CVI, you can use a C++ compiler to create a DLL and call DLL functions from CVI. From with C++, you can load and call CVI library functions. C++ compilers can compile C, but ANSI C compilers (including CVI) can't compile C++.
0 Kudos
Message 2 of 3
(2,578 Views)
You would be surprised how many CVI experts think you can compile C++ programs.

Thank you, now I can put that C++ brick down and quit hitting myself in the head with it.

It would of been nice if the CVI troubleshooting seach engine had that information in it!

Rick
0 Kudos
Message 3 of 3
(2,578 Views)