Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't open dynamic library



Thanks all for the replies. Basically for me, this boils down to a single question:

How can I avoid the message below when linking to a dynamic library, which in turn links to another dynamic library whose install path uses a relative location based on @loader_path?

/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: @loader_path/libwx_mac_u_d.dylib referenced from: /Projects/FusionPro-mainline/FusionProWorkspace/ FusionProMac/FusionPro/FPUnicodeUI/build/Debug/Default/ fpunicodeui_macho_d.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

In other words, how can I get the linker to resolve @loader_path at link time?


I'm trying to embed all the libraries and frameworks that my plug-in needs inside the plug-in's bundle.

Thanks,
Dan

P.S. I'm still interested in the philosophical discussion about what the linker *should* be doing and which component should be the one to dictate installation paths and such, but I just need to get my project built at the moment.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: can't open dynamic library (From: Greg Guerin <email@hidden>)



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.