C++ And Loaded Code And Static Lib
SD <macosxdevlist-LS+HbC+WUqxt2bImrQXijVaTQe2KTcn/@public.gmane.org>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <p06240894c7ee68c39ebd@[172.16.32.166]> |
I have a static library that I've built. This library consists of mostly C++ classes in a separate namespace (call it MyNameSpace). I also have two pref panes (think of them as Code bundles that get loaded into an app). Both of these pref panes statically link with my library. However, when the second pref pane/code bundle is loaded, it uses the classes loaded from the first pref pane/code bundle (even if the classes have different implementations but the same names). How do I get each pref pane/code bundle to use the classes it linked with, rather than looking them up from previously loadded code? I knew this was a problem with Objective-C, but I had though C++ didn't have this problem. Thank you muchly, this a huge problem for me. SD. -- ========================================== SD WARNING: Programming may be habit forming.