相关疑难解决方法(0)

Linux上的C++动态共享库

这是使用g ++进行动态共享库编译的后续内容.

我正在尝试在Linux上用C++创建一个共享类库.我能够编译库,我可以使用我在这里这里找到的教程调用一些(非类)函数.当我尝试使用库中定义的类时,我的问题开始了.我链接的第二个教程展示了如何加载符号来创建库中定义的类的对象,但是没有使用这些对象来完成任何工作.

Does anyone know of a more complete tutorial for creating shared C++ class libraries that also shows how to use those classes in a separate executable? A very simple tutorial that shows object creation, use (simple getters and setters would be fine), and deletion would be fantastic. A link or a reference to some open source code that illustrates the use of a shared class library would …

c++ linux shared-libraries

163
推荐指数
4
解决办法
21万
查看次数

标签 统计

c++ ×1

linux ×1

shared-libraries ×1