Default Library Directives for Microsoft Visual Studio
Most compilers insert default library directives in the object and library files they generate. A default library directive tells the linker to automatically include a named library in the link. Normally, the directive refers to the name of C library files. If no files in the link contain a default library directive and the linker does not explicitly include a C library in the link, the linker reports unresolved function references in the object modules.
Object and static library files that LabWindows/CVI creates do not contain a default library directive.
If you include in your project at least one object file that contains a default library directive, the Visual Studio linker uses that library to resolve references in all object and library files, even the files you create in LabWindows/CVI. Object files you create in Visual Studio usually contain default library directives.
If you do not include in your project any object files or libraries you create in Visual Studio, you can add the following Visual Studio libraries to the project to avoid link errors.
libcmt.lib
oldnames.lib
Complete the following steps to add these libraries to the project.
- In the Visual Studio development environment, select Project»Properties.
- Expand the properties tree to the Configuration Properties»Linker»Input item.
- Add the listed libraries to the Additional Dependencies option.