Subject: Re: How to make a Shared Library using C++? From: Ben Combee <[EMAIL PROTECTED]> Date: Tue, 02 Mar 2004 07:03:10 -0600
At 06:58 AM 3/2/2004, you wrote: >i'm using the wizard in CW 9 to create a sahred library > >if i check Force C++ compilation.. just after finishing the wizard i get >link error without forcing C++ it compiles > >what is the right way to make a C++ shared library?
There is no right way. The 68K shared library model just doesn't support C++ very well. You don't have standard global variables, and all entry points to the shared library have to go through system traps with a leading libRef parameter.
The best comprise seems to be to use C++ wrappers in your main program that call C code in your shared library.
Roger Stringer Marietta Systems, Inc. (www.mariettasystems.com)
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
