Why Do I Get Error LINK1106 When Attempting To Link nidaqmx.lib in VC++ 5?
Primary Software: Driver Software>>NI-DAQmx
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: Measurement Studio>>Visual C++ Support
Hardware: Multifunction DAQ (MIO)
Problem: I am trying to run the example programs located in
C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\ in Visual C++ 5 (Microsoft ™ Visual Studio 97 ™) , but I am getting the following error:
Linking…
..\.. \DAQmx ANSI C Dev\lib\msvc\nidaqmx.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x40f39ecc
Error executing link.exe
Solution:
The VC++ import library format changed between VC++ 5 and VC++ 6. The VC import library shipped with DAQmx only supports VC++ 6 and up. If you do not have VC++ 6 or higher, you can still compile against NIDAQmx.h; you'll just have to call LoadLibrary on nicaiu.dll and load function pointers dynamically.
However, the easiest solution would be to upgrade to VC++ 6. You can also use Traditional NI-DAQ if that is your preferred API.
Related Links:
Developer Zone Category: Discussion Forums: Most Active Hardware Boards: Multifunction DAQ
Attachments:
Report Date: 08/24/2006
Last Updated: 09/24/2006
Document ID: 40NHJELA