Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Linker Errors When Using LabWindows/CVI 8.5 and the Visual Studio .NET 2003 LabWindows/CVI Wizards

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: Measurement Studio

Problem:
I have installed LabWindows/CVI 8.5 and are trying to use the LabWindows/CVI Project and Conversion Wizards in Visual Studio .NET 2003. However, when I tried to build a project that was created by one of these wizards, I run into linker errors. What's going on and how do I fix these errors?

Solution:
With LabWindows/CVI 8.5 and later, the LabWindows/CVI libraries can be installed to various locations. The LabWindows/CVI wizards are not aware of these changes and therefore cannot find the needed libraries. To fix these linker errors, update the following project settings:
  1. In the Solution Explorer, right-click on the project and select Properties.
  2. Click the C/C++ folder.
  3. Click the General property page.
  4. Modify the Additional Include Directories property to include the following paths:
    • NISHAREDDIR\CVI\include
    • NIPUBAPPDATADIR\CVI\include
    • NIPUBAPPDATADIR\CVIXX\include where CVIXX is the highest version installed
  5. Click the Linker folder.
  6. Click the General property page.
  7. Modify the Additional Library Directories property to include the following paths:
    • CVIDIR\extlib\msvc
    • NISHAREDDIR\CVI\extlib\msvc
    • NIPUBAPPDATADIR\CVI\extlib\msvc
    • NIPUBAPPDATADIR\CVIXX\extlib\msvc where CVIXX is the highest version installed

Repeat the above steps for the other project configurations (i.e. Debug, Release, etc).

Note These linker errors will only occur you are using LabWindows/CVI 8.5 or later and the LabWindows/CVI wizards in Visual Studio .NET 2003.

Related Links:
KnowledgeBase 1V1A1U8M: Integrating LabWindows/CVI with Microsoft Visual C++

Attachments:





Report Date: 08/15/2007
Last Updated: 11/28/2007
Document ID: 4BIHC800

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit