Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Compling NIDAQmx with cygwin

I have C-code for PCI-6601 control that uses the NIDAQmx 9.3 library, and compiles fine under the MinGW tools, but the compilation fails if the CYGWIN gcc compiler is used.  The compiler has parsing errors in NIDAQmx.h beginning with line 77.    Does anyone know why this compiler has a problem?

0 Kudos
Message 1 of 3
(5,716 Views)

I have a similar issue, Love to see if someone has a fix

0 Kudos
Message 2 of 3
(5,711 Views)

Hi rmc_boeing,

 

__int64 is a Microsoft extension. With mingw or tcc (Tiny C), most of the standard library headers (such as stdio.h) include _mingw.h, which #defines the Microsoft-specific types and keywords for you. Perhaps Cygwin's standard library headers do not. Try defining __int64 appropriately before including NIDAQmx.h.

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 3 of 3
(5,690 Views)