There is one other thing you might consider doing to reduce the amount of content that you import with a static library. In CVI, open the header file corresponding to the .lib/.dll that you are using. Save this file to a different name.h
.
Again, in the editor, edit that file to include only the exported functions you would like to use. Caution: Do not edit out functions that may be called by the functions you intend to keep. Once satisfied you have a file representative of what you want, click anywhere in the new name.h
file (to make sure it is the active file) and use the menus at the top of the workspace to select Options->Generate DLL Import Library...
A popup file selection dialog box will appear. Using that dialog, navigate to the .dll
corresponding to the .lib
file you want to generate. If successful, a new name.lib
will be created containing only the exported functions you want.
One additional side benefit of limiting the number of exports is that it will help to avoid COFF incompatibility problems sometimes seen when mixing libraries created in different environments.