On Sat, Oct 26, 2002 at 11:51:33PM -0400, Michael Love wrote:
>     I've got two different versions of a static library that I licensed from
> another company, and I'm trying to find a way to call into both of them from
> a single Palm OS application. Directly linking both of them won't work,
> since their function names are identical and I end up only linking
> successfully to one or the other.
[...]
> Or is there a way I can successfully pull off the hex editing
> trick? I'm using CodeWarrior now, but can switch to prc-tools if necessary
> to make this work...

This can indeed be done with prc-tools; it is precisely what objcopy's
--redefine-sym option is for.  (That option basically does the hex
editing trick, but it knows what it's doing :-).)

However, you'll need to have GCC versions of the static libraries in
question.  It sounds likely that you've probably only licensed the
versions you needed, namely CodeWarrior versions.  Trying to use CW
libraries with prc-tools's linker or vice versa is not a particularly
practical proposition; there's a small amount of discussion of
translating libraries to do this in the archives, but I think a fair
(and overly optimistic!) summary is that trying that is not an effective
use of one's time.

    John

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to