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
Highlighted

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 5
(268 Views)

Hello,

I've got the same problem.

Have you got an answer?

Best regards

0 Kudos
Message 2 of 5
(158 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 5
(145 Views)
Solution
Accepted by topic author LeDrull
06-05-2019 02:45 AM

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 5
(143 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 5
(115 Views)