Hi,
I've got a framework that relies on two dynamic libraries that I want to
include as sub libraries in the framework.
For the parent framework, I've got an lcf file that contains two lines:
-sub_library Support
-sub_library Core
Each dylib has a lcf file with one line:
-umbrella Foo
The two dylibs are copied into the /Version/A directory of the parent
framework when it is built.
The parent framework has an install path of @executable_path/../Frameworks
When the framework is placed in /Library/Frameworks, and app that links
against it fails to load with this error:
dyld: [stuff snipped]/Tester.app/Contents/MacOS/Tester can't open library:
./Support.dylib (No such file or directory, errno = 2)
Both dylibs have an install path of ./ which dyld seems to using, although
the app itself never links against those libraries, only the parent
framework executable does.
So, what is the correct install path for the two dylibs, and are my lcf
files setup correctly?
MW Ron - 27 Jan 2004 04:11 GMT
>Hi,
>
[quoted text clipped - 27 lines]
>So, what is the correct install path for the two dylibs, and are my lcf
>files setup correctly?
This may be a bug in CodeWarrior 9's linker. It is fixed in an upcoming
patch or I can send you a newer linker for you to try.
Ron

Signature
Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>