开发者

Exporting member function of a static library

开发者 https://www.devze.com 2023-01-17 07:08 出处:网络
Is it possible (or relevant at all) to export member functions of a static library? When I \"dumpbin /EXPORTS\" my .lib file I don\'t see any of my defined class members.

Is it possible (or relevant at all) to export member functions of a static library? When I "dumpbin /EXPORTS" my .lib file I don't see any of my defined class members.

  • 开发者_JS百科

    Linking to this lib file succeeds, but I use an external tool that fails to read non-exported symbols.

  • Also tried adding a .def file with no results.


A static library is just a collection of .o files. This is then linked into your executable in exactly the same way as .o files so whatever works for .o files will work for static libraries.

0

精彩评论

暂无评论...
验证码 换一张
取 消