02-24-2015 02:34 PM
Hello all,
I have a problem trying to compile an example found in: C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Ext Clk.
I am running Windows 7 N Professional 64 bit with Codeblocks IDE 13.12 nd the latest NIDAQmx driver. I am also using the GNU GCC as my compiler.
I try running this as a project in Codeblocks with the header file NIDAQmx.h found in: C:\Program Files (x86)\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include.
Despite this, I consistently (for a week now :() receive errors such as:
\main.cpp|23|undefined reference to `DAQmxCreateTask@8'|
\main.cpp|24|undefined reference to `DAQmxCreateAIVoltageChan@40'|
\main.cpp|25|undefined reference to `DAQmxCfgSampClkTiming@32'|
\main.cpp|30|undefined reference to `DAQmxStartTask@4'|
\main.cpp|35|undefined reference to `DAQmxReadAnalogF64@36'|
\main.cpp|42|undefined reference to `DAQmxGetExtendedErrorInfo@8'|
\main.cpp|47|undefined reference to `DAQmxStopTask@4'|
\main.cpp|48|undefined reference to `DAQmxClearTask@4'|
||=== Build failed: 8 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|
Any help would be wildly appreciated, thank you.
Paolo
11-08-2019 04:46 AM
Hi,
Did you find a solution to this? I have the same issue, although, I'm using mingw64 compiler.
Paul