Re: Multiple symbol definitions causing application crash
Re: Multiple symbol definitions causing application crash
- Subject: Re: Multiple symbol definitions causing application crash
- From: Andrew Pontious <email@hidden>
- Date: Sun, 6 Apr 2008 12:14:57 -0700
Others may have more information for you, but in my understanding, in
general, it's not going to be possible to load two different versions
of the same dynamic library in the same executable at the same time.
You will need to make sure your bundle links against the same version
of the framework that the application does, or use a different library
or other code entirely for that functionality.
-- Andrew
On Apr 1, 2008, at 10:36 AM, Andrew Buza wrote:
I'm writing a plug-in (bundle/shared library) for another application
and am having a bit of trouble that I'm not sure how to resolve. Both
my bundle and the host application use different versions of the same
3rd party library (omniORB); the host app loads libOmniCore.XC.dylib
while my plug-in loads libomniDynamic4.dylib.
As my plug-in loads, the application terminates with SIGABRT due to an
exception thrown from libomniDynamic4. The function
NP_marshalComplexParams is defined in both libraries, and what appears
to be happening, based on the stack trace & module addresses, is that
one of the functions called during omniDynamic4's initialization
procedure is using the function in OmniCore.XC instead of its own.
I'm not sure how to fix this problem since I'm not very familiar with
the ins & outs of mac development in general or dynamic linking on the
mac in particular. I've made sure that -flat_namespace isn't being
passed to the linker, but I'm not sure what else to try.
Any ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden