what tool can I use to find classes present in a C++ static library (.lib) ? This information is for building a library in one solution and use it in another solution by giving lib as input to linker. As the lib can come from 3rd parties, its difficult to find what services it is offering.
Share
Usually from the documentation and headers. If you don’t have that, you could use
dumpbin -exportsordumpbin -symbolson it to get a list of exported functions (mostly,-symbolsfor static librarys,-exportsfor a link library for a DLL).If the code was written in (Microsoft) C++, and the public names are mangled, that can tell you quite a bit (return types, parameter types). If they’re basically C functions (either from a C compiler, or a C++ compiler but marked with
extern "C"), the names won’t be mangled, so it won’t be able to tell you nearly as much (just names, nothing about the type or even number of parameters).