From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx 19.0 does not install the correct 64-bits NIDAQmx.lib file!

Solved!
Go to solution

Hi. I've just installed the latest version of NI-DAQmx (v19), and got a LNK4272 error while trying to build a 64-bit C application using MSVC.

 

The cause of the error is that the "NIDAQmx.lib" file installed in the "C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C\lib64\msvc" folder is the same as that found in the "lib32" folder (both md5 checksums are identical).

 

Is there any other place where I can get the 64-bit version, or I should downgrade to v18 until the problem is solved?

 

 

Message 1 of 6
(2,909 Views)

Hello,

I've got the same problem.

Have you got an answer?

Best regards

0 Kudos
Message 2 of 6
(2,799 Views)

Hello,

 

No answer yet. I just downgraded to 18.6 and everything works fine so far.

 

Guess we'll have to wait for 19.1 patch release.

 

Regards.

0 Kudos
Message 3 of 6
(2,786 Views)
Solution
Accepted by topic author LeDrull

Hello,

If you are interested, I worked around by recreating the .lib file.

 

  • Download the attached .7z file and unpack the .def file.
  • In Visual Studio, click on Tools>Visual Studio X64 command prompt
  • Type this command line : lib /def:nidaqmx.def /machine:X64 /out:nidaqmx.lib

That's all!

 

Hope this can help.

Best regards

Ludovic

 

Message 4 of 6
(2,784 Views)

Thanks, now everything works as expected!

 

I didn't realize the LIB file could be recreated from the DLL...

0 Kudos
Message 5 of 6
(2,756 Views)

Hi all,

 

This was a defect in NI-DAQmx 19.0; the installer was installing the 32-bit nidaqmx.lib to both the 32-bit and 64-bit locations. This has been corrected in NI-DAQmx 19.1.

 

If you can't upgrade, the workaround that @Ludovic posted above for generating a replacement nidaqmx.lib will also work.

——
Brandon Streiff
ni.com/compactdaq · ni.com/daq
Message 6 of 6
(2,607 Views)