Emanuele Pavanello
Emanuele Pavanello

Reputation: 863

Link shared library to another shared library

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.

Upvotes: 1

Views: 568

Answers (1)

mornfall
mornfall

Reputation: 428

Yes, shared libraries can be linked to other shared libraries, and commonly are. You can use ldd to explore dependencies between them.

Upvotes: 1

Related Questions