| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Doing this I noticed that when I link one of my .dylib files I have to string out every single other library name they reference in order to avoid undefined references. The Linux linker only seems to require you to list the top-level dependencies.
ie: if lib1 calls functions in lib2 and lib2 calls functions in lib3... On linux you can link lib2 with -llib3, then lib1 with -llib2 and the dependency on lib3 gets pulled in automatically. On Darwin when you link lib1 you have to do a -llib2 -llib3 or you will get an error something like:
Illegal reference to symbol "some symbol": internal link edit command failed
"some symbol" defined in indirectly referenced dynamic library "lib3"
When I build each library I setup the -o to be the full pathname of where the library is to be loaded from, so the install names of each library should have the info the linker needs to find them.
Is there any way to make this process a bit simpler so that all the indirect references don't need to be listed?
| References: | |
| >Re: Porting from Linux, plug-ins that depend on other plug-ins (From: Brian Edginton <email@hidden>) | |
| >Re: Porting from Linux, plug-ins that depend on other plug-ins (From: email@hidden) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.