Advertisement

05.05.2008 at 02:31PM PDT, ID: 23377860
[x]
Attachment Details

Linking against a shared library which links against another shared library

Asked by Kanivorous in Apple Programming, Linux, C Programming Language

I currently have a binary file which links against another dynamic library (ie. liba.dylib) which links against another library (ie. libb.dylib). This is all set up in my XCode project and liba.dylib (which has a linker flag set -lb to link against libb.dylib) and libb.dylib will build just fine on their own. But when I try to build the binary which links against liba.dylib, it will complain that
"warning can't open dynamic library: libb.dylib referenced from: /path/to/liba.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)"

Why is it that even if I specified for liba.dylib to link against libb.dylib, it can't find libb.dylib when I build the binary? What kind of flags do I need to set and where to get this chain of links working? Thanks.

Start Free Trial
[+][-]05.05.2008 at 02:38PM PDT, ID: 21503240

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 02:51PM PDT, ID: 21503314

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 03:00PM PDT, ID: 21503367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 03:04PM PDT, ID: 21503392

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 03:38AM PDT, ID: 21506084

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apple Programming, Linux, C Programming Language
Sign Up Now!
Solution Provided By: duncan_roe
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628