How to tell whether library has been statically linked
2 years ago
Originally Published: 2008-01-24
Article Number
000052727
Applies To
RSA Key Manager Client 1.5.x
Microsoft Windows
Issue
How to tell whether library has been statically linked

One way to determine whether an executable has linked the static version of kmclient.lib is to open the executable in Dependency Walker (depends.exe, which is included in the Microsoft Visual Studio 6.0 Tools and can be downloaded at http://www.dependencywalker.com):

- If kmclient.dll is shown as one of the dependencies, then it is dynamically linked. (You can also use "dumpbin /dependents" followed by the executable name.)

- If kmclient.dll is not shown as one of the dependencies, but when the executable is selected, the Export Function List (the pane where the first column is 'E') displays the RKM Client functions such as Initialize, Shutdown, KMSInit, KMSGetKey, etc., then it is statically linked to kmclient.lib. (You can also use "dumpbin /exports" followed by the executable name.)