At 01:36 PM 9/17/2002 -0300, you wrote: >Hi, > >I must to use the function round(). >It's in MathLib.h... > >In MathLib.h I put the headers: > #include <PalmOS.h> > #include <PalmCompatibility.h> > > ( I don't hava Pilot.h... )
You don't have the current version of MathLib... the one available from http://www.radiks.net/~rhuebner/mathlib.html has been updated for Palm OS SDK 3.5 and later. >It's all right when I has compiled, but when I run the program the >following message has showed, when round() is called: >"The Program called a function in a shared library using a reference number >of 0. This reference number does not correspond to any currently installed >library and is invalid." Look at the implementation of round() -- you need to setup a global variable with the result of opening the MathLib shared library in order for this call to work. See the MathLib docs at the website. -- Ben Combee CodeWarrior for Palm OS Platform technical lead [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
