I have one c++ Project that contains the principal binary that is : prog.CGI. This is linked to one shared library called : Core.so, I'd like to know if I can also link another shared library called : ext.so to Core.so because ext.so use structures defined into Core.so.
我有一个包含主要二进制文件的c ++项目:prog.CGI。这链接到一个名为Core.so的共享库,我想知道我是否还可以将另一个名为:ext.so的共享库链接到Core.so,因为ext.so使用定义到Core.so中的结构。
1 个解决方案
#1
1
Yes, shared libraries can be linked to other shared libraries, and commonly are. You can use ldd
to explore dependencies between them.
是的,共享库可以链接到其他共享库,通常是。您可以使用ldd来探索它们之间的依赖关系。
#1
1
Yes, shared libraries can be linked to other shared libraries, and commonly are. You can use ldd
to explore dependencies between them.
是的,共享库可以链接到其他共享库,通常是。您可以使用ldd来探索它们之间的依赖关系。