At 12:00am -0700 00-08-30, Palm Developer Forum digest wrote:
>Subject: Combining shared libraries and static libraries
>From: =?iso-8859-1?Q?Petrus_Wrang=F6?= <[EMAIL PROTECTED]>
>Date: Tue, 29 Aug 2000 17:14:35 +0200
>X-Message-Number: 36
>
>Would it be possible to make a shared library which in turn uses one or two
>static libraries to overcome the 64K limit on shared libraries?
Static libraries still get linked into code resources, so that
wouldn't help you.
You _could_ have one shared library (the top level) that would
dispatch some of the calls to one or more additional shared
libraries. This creates problems with sharing globals (though you can
use the technique of passing around a pointer to a global data
structure), and you wind up with multiple PRCs to install on a
device, but it would solve the problem that you'd mentioned
previously of needing to replace one shared library with a different
one.
Other than that, solutions get more tricky. You could create
additional code resources, each with their own dispatch table, and
write your own code to do the dispatching, but that's pretty
complicated.
Currently there is no compiler/linker support in Codewarrior for
multi-segment shared libraries.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/