On Monday 26 April 2004 3:22 pm, Shiva Dubey wrote: > I built a PalmOS 6 Cobalt application as well as a > shared library. I am testing it on a ARM platform. > I run my application from SD Card. I place the app.prc > as well as sharedlib.prc in PALM\LAUNCHER folder of SD > Card. When I run the application, I get an error > message saying that the application cannot link to the > library. > Please point me what I am doing wrong.
The shared library is not associated in any way with your main application (other than the fact your main application attempts to use it). The PalmOS launcher mechanism for running applications from a card first copies your application to main RAM. The launcher has no way of knowing what else needs to be copied, thus the shared library is left on the card. When your application attempts to use the shared library from RAM, it fails. Try testing for a copy of the shared library on the card and copy it to RAM if needed, before attempting to lock it down and use it. Remember to remove it from RAM when quitting if it was copied this way. General rule of thumb, however, is that shared libraries must be stored in RAM, while the application can be stored on a card. The point of a shared library is having it shared - and it can not be used directly from the card. -- Matthew Bevan, Margin Software - Re-inventing the wheel, every time. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
