Solution
In order to compile any C code that uses DAQmx function you need to link the NIDAQmx.lib library to your project. This is a two step process. First you have to include the library into your project, and second you must include the location of the library to your default library paths. The following steps show how to perform these two tasks:
Visual C 6.0
- Click on Project in the toolbar and select Settings
- Click on your project on the left side of the Project Settings window
- Click on Link tab on the right side of the Project Settings window
- Append the string NIDAQmx.lib to the string in the Object/library modules: textbox
- Click on Tools in the toolbar and select Options...
- Click on the Directories tab
- Select Win32 for the Platform: combo box and Library files for the Show directories for: combo box
- Click on the New button and select the directory containing the NIDAQmx.lib file
- Click the OK button to save your changes and close the window
Visual C++ .NET
- Click on Project in the toolbar and select [Project Name] Properties...
- Click on Configuration Properties >> Linker >> Input
- Type the NIDAQmx.lib to the Additional Dependencies text box, do not close the window
- Click on Configuration Properties >> Linker >> General
- Click in the Additional Library Directories textbox and select the directory containing the NIDAQmx.lib file.
- Click the OK button to save your changes and close the window