OK, it was a mingw issue. It does not recognize Windows specific type __int64. 2 typedef lines in NIDAQmx.h need to be corrected as follows, replacing "__int64" with "long long".
#ifndef _NI_int64_DEFINED_
#define _NI_int64_DEFINED_
/* typedef __int64 int64;*/
typedef long long int64;
#endif
#ifndef _NI_uInt64_DEFINED_
#define _NI_uInt64_DEFINED_
/* typedef unsigned __int64 uInt64;*/
typedef unsigned long long uInt64;
#endif