Re: FCP FxPlug load order - how do I control?
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Thread-index: AcjXOHt9ukBPBEMrEd2N/AAfWzOy/A== Thread-topic: FCP FxPlug load order - how do I control? User-agent: Microsoft-Entourage/11.4.0.080122
Peter Litwinowicz wrote:
I should have been more clear. They are independent plugins that happen to have some C++ classes in each that are named the same.
Say I have a C++ class GlobalStuff in each one, and it's declared statically. The second one to load is calling into the methods of the instance in v1, even though they are declared statically. This doesn't happen with similar code in other hosts.
To Paul M.,
Hopefully you are using GCC 4 or later. I found the info below on the web here http://gcc.gnu.org/wiki/Visibility and was instrumental in getting our FxPlugs working properly (because we ran into what you are running into). It¹s not a host problem. It¹s a C/C++ compiled code loading problem in Objective-C hosts. Blame the compiler/linker writers! However, there IS an easy fix.
Thanks Pete - I knew there would be something like this in there. I'm using Xcode, so I assume I can just set those extra command-line switches you mentioned on the "Other linker flags" setting.
Except that I have it in my "other C flags" entry (and hence "other C++ Flags" entry), not "Other linker flags" Perhaps it gets passed to the linker as well, but I believe you need it at compile time too? Dunno. Just know what I have. Also, hopefully you are using GCC4 (with Xcode) or later. Gcc 3.3 does not support the hidden flags. Pete _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Litwinowicz