"Paul Leverett" <[EMAIL PROTECTED]> wrote in message
news:13028@palm-dev-forum...
>
> Is it possible to use C++ in a shared library?

I don't think you can use virtual functions nor exceptions.  I recall
reading that those 3 keywords (virtual, throw, catch) entail the use of
globals, and of course you can't use globals in a shared library unless you
do hackish things.

> I've downloaded the sample shared library project, changed it to use the
3.5
> SDK, and work fine. The problem is when I turn on the C++ compile
everything
> compiles but I'm getting the following error during linking:
>
> Link Error   : __RuntimeModule__: '__Startup__' referenced from
> '__DummyStartup__' is undefined.

That's odd, an associate of mine had the same problem and resolved it.  I'll
forward your query to him.  I think it was some kind of library thing.  Make
sure your system AND user paths both point to OS3.5 folder, not OS3.1.  Go
into Segments view and find and right-click on any .lib files you see, Open
in Explorer, and make sure they're not coming from OS3.1.

Good luck,
-Jeff Ishaq




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

Reply via email to