08-08-2008 08:42 AM
08-11-2008 10:10 AM
08-11-2008 01:44 PM
08-11-2008 03:56 PM
08-12-2008 07:31 AM
08-12-2008 02:14 PM
Hi
I added #define _MSC_VER 1300 to the top of the header before it checked which compilier. Then it jumps into the microsoft types, where unsigned __int8 is not known because I get
"aardvark.h"(81,27) syntax error; found 'identifier' expecting ';'.
08-13-2008 03:51 AM
Looks like you will need to provide your own typedefs, matching up the third party definitions with the CVI ones, available here.
JR
08-13-2008 07:56 AM
It is clear now.
Thanks!
03-14-2009 03:40 PM
Matt,
Did you ever solve this problem ? I am having the same exact problem with the same exact header file /hardware.
Thanks
Diego
03-15-2009 08:41 PM
Hi Spidyman
I modified the .h file as you see below in the first example. Or a more simple way is to remove the #ifndef _MSC_VER ... statements as you see in the second example below.
//-----------------------
// first example
//------------------------
//
// Not using GCC or Microsoft compilers
#ifndef _MSC_VER
/* C99-compliant compilers (GCC) */
//#include <stdint.h>
/*typedef uint8_t u08;*/ typedef unsigned char u08;
/*typedef uint16_t u16;*/ typedef unsigned short u16;
/*typedef uint32_t u32;*/ typedef unsigned int u32;
/*typedef uint64_t u64;*/ typedef unsigned __int64 u64;
/*typedef int8_t s08;*/ typedef char s08;
/*typedef int16_t s16;*/ typedef short s16;
/*typedef int32_t s32;*/ typedef int s32;
/*typedef int64_t s64;*/ typedef __int64 s64;
#else
/* Microsoft compilers (Visual C++) */
typedef unsigned __int8 u08;
typedef unsigned __int16 u16;
typedef unsigned __int32 u32;
typedef unsigned __int64 u64;
typedef signed __int8 s08;
typedef signed __int16 s16;
typedef signed __int32 s32;
typedef signed __int64 s64;
#endif /* __MSC_VER */
//-----------------------
// second example
//------------------------
//
//#ifndef _MSC_VER
/* C99-compliant compilers (GCC) */
//#include <stdint.h>
//typedef uint8_t u08;
//typedef uint16_t u16;
//typedef uint32_t u32;
//typedef uint64_t u64;
//typedef int8_t s08;
//typedef int16_t s16;
//typedef int32_t s32;
//typedef int64_t s64;
//#else
/* Microsoft compilers (Visual C++) */
typedef unsigned char u08;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long u64;
typedef signed char s08;
typedef signed short s16;
typedef signed int s32;
typedef signed long s64;
//#endif /* __MSC_VER */