Re: C++ name collisions between plugins
C++ or Objective C? The Obj C runtime doesn't (can't) distinguish between two classes with the same name, so it's problematic for plugins. Now I just prefix every class with the reverse domain, product and version number, like this: ComBenSyversonMattebox2Render It's sort of absurd, but it's the only solution to completely avoid collisions. Ben On Aug 15, 2013, at 9:17 , Paul Miller <stelefx@gmail.com> wrote:
I think this was discussed before, but I can't find the thread.
I have an older plugin with a certain implementation of class Foo. I have a newer plugin with a different implementation of class Foo.
In compiler settings of BOTH plugins I have:
Symbols Hidden By Default: ON Inline Methods Hidden: ON (Intel) Default Symbol Visibility: Hidden (-fvisibilty=hidden)
Yet, my code will randomly jump between implementations of Foo if both plugins are installed.
Aside from renaming every class or putting them in different namespaces, is there any other way around this?
I'm running in the debugger in this case. Does that have an effect on it? _______________________________________________ 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: https://lists.apple.com/mailman/options/pro-apps-dev/ben%40bensyverson.com
This email sent to ben@bensyverson.com
_______________________________________________ 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: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Ben Syverson