Creating Static Libraries in LabWindows/CVI
You can create static library (.lib) files in LabWindows/CVI. Static libraries are libraries in the traditional sense—a collection of object files—as opposed to a dynamic link library or an import library. You can use a project to create static library files that work with the external compiler but only if you do not include object or library files in the project.
You must have a separate project for each static library you want to create. Then, select Build»Target Type»Static Library in the Workspace window. Use the Build»Build command to create a static library. You can set the name of the static library, as well as other options, by selecting Build»Target Settings. In the Target Settings dialog box, you can also switch to a different configuration. Static libraries created using a release configuration do not contain any debugging information and therefore cannot be debugged.
![]() |
Note If you include a .lib file in a static library project, LabWindows/CVI includes all object modules from the .lib in the static library it creates. When you create an executable or DLL, LabWindows/CVI uses only the necessary modules from the .lib file. |