Mailing Lists: Apple Mailing Lists

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

multiple mach-o symbol definitions



hopefully this is the correct forum for this question, but it is related to a carbon application, so...

I have a Carbon-based CFM app which is using a 3rd-party framework, and supplied with this framework is a static library we link with. Apparently this static library is a cfm/mach-o bridge
although i don't know for sure.
anyway, it turns out that the vendor has supplied two of these frameworks and libraries, one for
each kind of device they support. each of these two library/framework combinations work fine
by themselves. however our app supports both devices and so uses both lib/frameworks.
As soon as the 2nd one is accessed, it doesn't matter in which order, the debug log shows
dyld reporting multiple symbol definitions within these two frameworks.
Sure enough, a symbol table dump shows that each framework contains a mach-o library that
contains this symbol. as far as i can tell, this is the only duplicate.
needless to say, the application ceases to work after this point, and the debugger is useless as well.)

so much for the background. i'm new at mach-o programming and framework usage.
is this multiply-defined symbol really an error, or something that our app is supposed to know
how to deal with? Is there some common protocol we can use to always force the framework library to unload after we're done with it (we do all the vendor-supplied rundown routines already).
or do i simply need to get the vendor to supply a new framework library?
(I'm still making my way through "Mach-O Runtime Architecture" book, so feel free to point me in that direction, or any other reading, if necessary.)

thanks in advance..
-rick
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.