Why do I get a linker error (LNK 2019) when using NI-488.2 driver in Microsoft Visual C\C++?Primary Software: Driver Software>>NI-488.2Primary Software Version: 1.0 Primary Software Fixed Version: N/A Secondary Software: N/A Hardware: GPIB
Problem: I am using the NI-488.2 Driver in Microsoft Visual C\C++ and have included ni4882.h as instructed in the help file. However when I attempt to compile this I get link error LNK 2019: unresolved external symbol. How can I compile my project? Solution: As well as including the header file found at C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\Headers\ni4882.h you need to include the object file as well. This is ni4882.obj and is located in C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\Lib32\ni4882.obj. There are three methods of including this.
Related Links: KnowledgeBase 488DF36S: NI-DAQmx, NI-VISA, and NI-488.2 Visual C++ Example Locations Attachments:
Report Date: 05/12/2009 Last Updated: 05/29/2009 Document ID: 4XB9OVBN |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
