このコンテンツは設定された言語で表示できません。

このコンテンツは表示可能な別の言語で表示されています。 お使いのブラウザに翻訳機能がある場合はご利用ください。

Compile Linking Error 64-bit NI-DAQmx C Lib File Location

Updated Dec 12, 2022

Reported In

Driver

  • NI-DAQmx

Issue Details

I get linking errors when I try and develop a 64-bit NI-DAQmx application in C or C++.

Developing a 32-bit application works fine by linking to the .h and lib files found in:
<Program Files (x86)>\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc

Solution

Using a 32-bit library file in a 64-bit program can cause linking errors. If your program works as a 32-bit application then the linking errors are most likely caused by linking to a 32-bit .lib file.

To resolve the linking errors, replace the references to 32 bit directory with reference to the 64 bit directory for NI-DAQmx.

The 64-bit NI-DAQmx C Lib File Location is: 
<Program Files (x86)>\National Instruments\Shared\ExternalCompilerSupport\C\lib64\msvc
​This is a native 64-bit library file and can be used in 64-bit C and C++ applications.

Additional Information

If you do not have this directory on your computer, make sure you selected to install ANSI C support when configuring a custom installation of the DAQmx driver.