LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid type specification - unsigned __int64 in CVI2010 includes

I'm running into an issue where I have a project that was previously built with CVI 8.1.1 and now I have CVI 10.0.0.  When I try to compile various files using some of the NI includes, it generates an error when 'unsigned __int64' is used (ex: utility.h - line 840, userint.h - line 1777, inifile.h - line 108).  

 

Error: Invalid type specification

 

In the CVI2010 help, it says this error message says - "You can use the type specifiers signed and unsigned only in combination with one of the basic integer types (char, short, int, long)."

 

If this is the case, how is one to utilize these includes without modifying them?  Is there a project setting or something which can be modified to be able to use these?

 

0 Kudos
Message 1 of 3
(4,175 Views)

Hello Jonnny,

 

__int64/unsingned __int64 are predefined data type and are equivalent with long long/unsigned long long accorting to this.

Using unsigned __int64 shouldn't give error in 8.1.1 or 10.0.0

Could you check wheter __int64 is redefined in your project

e.g

#define __int64 some_type

With this re-definition I can reproduce the error

 

Constantin

0 Kudos
Message 2 of 3
(4,148 Views)

 

Thanks for this.  It turns out someone was redefining it based on differing platforms. Maybe this was necessary in older versions.

0 Kudos
Message 3 of 3
(4,136 Views)