LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 5.5.1 Compiler Error?

Can anyone tell me why the following code compiles correctly under CVI 5.5 but does NOT compile under CVI 5.5.1?

unsigned char test1 = (signed char)5.0;
unsigned char test2 = (unsigned char)5.0; /* Compile errors: why? */
signed char test3 = (signed char)5.0;
signed char test4 = (unsigned char)5.0; /* Compile errors: why? */

This is a new version of the same question I posted a few hours ago.
Urgent need for help thank you!"
0 Kudos
Message 1 of 3
(3,032 Views)
Giovanni...

I tried on it on my CVI 5.5p1 and it compiled fine.
What are the errors that you got back?
I have my compiler set to MSVC, what is yours?

I also had all warnings set in the compile options.
It even ran and worked as expected.

Let us know the errors you were getting and maybe I can tell you more,

Sorry,

Chris
0 Kudos
Message 2 of 3
(3,032 Views)
I too was able to compile correctly, I am not sure as to why you are getting this error. Please report back exactly what you are seeing. Thanks.
0 Kudos
Message 3 of 3
(3,032 Views)