04-08-2014 02:27 PM
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?
04-09-2014 03:49 AM
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
04-09-2014 09:18 AM
Thanks for this. It turns out someone was redefining it based on differing platforms. Maybe this was necessary in older versions.