1

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.

1
  • You can, but you don't need to provided that any executable that links against them has its build file linking against the dependent library before the one it depends on, in this case ext.so before Core.so. Commented Nov 20, 2013 at 0:06

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.