Why is my Vision VC++ Program Throwing a Fatal ErrorPrimary Software: Measurement Studio Add-ons>>IMAQ Vision for Measurement StudioPrimary Software Version: 8.0 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Modules>>Vision Development Module
Problem: I have a program written in Visual C++ using NI-Vision. When I try to compile my project in Visual Studio 2005, I get an error that says: fatal error C1083: Cannot open include file: 'nivision.h'" or fatal error LNK1104: cannot open file 'nivision.lib' How can I get my program to compile? Solution: When you add the line #include <nivision.h> to your source code or header file, the compiler looks for the nivision.h file in the directories you have specified in Visual Studio 2005. If the Vision directory hasn't been added, you will get these errors. To add the required include directories, follow the steps shown below:
![]() If those directories do not exist on your computer, you must reinstall the Vision Development Module. When selecting the toolkits to install, verify that text based support is set to install. The dialog should resemble the image below (version of NI Vision may differ). ![]() If Visual Studio is installed on the computer the Vision Development Module installer will include support by default. Related Links: KB 18G6G34S: How do you Compile and Run NI-DAQ Examples with Microsoft Visual Studio? Attachments:
Report Date: 12/11/2007 Last Updated: 12/13/2007 Document ID: 4GAAFI2L |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


