Andy,

Thanks... you are right!

I added these lines to mathlib.h:

// copied from sdk 3.1
typedef unsigned short  UInt;
typedef short   Int;
typedef unsigned long   ULong;
typedef UInt*   UIntPtr;

and changed the include section from mathlib.c:
// #include <Pilot.h>           // "old sdk version"
#include <PalmOS.h>             // from Sdk3.5

Thanks and best regards,
Felipe

-----Original Message-----
From: Andy Black [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 24, 2000 6:46 PM
To: Felipe Crochik
Subject: Re: MathLib + PalmOS3.5

What kind of errors??

I am probably not the best source (I am new to this as well) but I think I
might know what the problem is. When I tried to use mathlib.c and mathlib.h
I kept getting errors related to data types. ie: Int whatever, "unidentified
identifier". If this is what the problems you've been having are, then the
following should fix it.

With SDK 3.5 some of the standard data types and macros have been changed.
Int is no now UInt16. There are others like that and I can't remember them
off the top of my head. But look through the PalmTypes.h and
PalmCompatability.h files and you should find the new data types in there.

Hope this helps,

Andy

in article 12127@palm-dev-forum, Felipe Crochik at [EMAIL PROTECTED]
wrote on 5/19/00 2:10 PM:

>
> I am trying to compile the mathlib.c to use the MathLib in my application
> but I received a lot of error messages when I used a SDK3.5 template
> project.
>
> Do someone have a mathlib version sdk35 compatible? Any suggestions?
>
> I am new with codewarior and Palm development.
>
> Thanks in advance,
> Felipe
>
>
>
>
>
>


-- 
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