For even more information on this, you can look at the "unix_***" header
files.  These headers will show you the mappings from the standard functions
to the Palm OS APIs.  By including one of these files, you do not have to
replace all of your function calls.  Look for the header files in the Palm
OS x.x Support\Inc subdirectory.

Regards,

Steve

-----Original Message-----
From: Brian Mathis [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 26, 2000 5:51 PM
To: Palm Developer Forum
Subject: RE: Linker Error: atoi referenced from QuestionForm() is
undefine d? P lease help


On Mon, 26 Jun 2000, McMicken, Steven wrote:
> Why don't you use StrAToI?  The Palm OS Reference says to "Use this
function
> instead of the standard atoi routine."
> Regards,
> Steve
> 
> -----Original Message-----
> From: Samuel Tu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 26, 2000 5:28 PM
> 
> Hi Every one,
> I have a newbe question, I would like to use the C/C++ std function
convert
> a string to integer. So I include the <stdlib.h> and use the "atoi"
function
> inside a QuestionForm function as follow
> int test = atoi("server")
> 
> However, when I compile the program, if give me "Linker Error: atoi
> referenced from QuestionForm() is undefined". I already undefind the
> QuestionForm function, so I have no idea what's going on? Any idea? 
> Please help. Thanks
> Sam

To give you more information on this..

The standard C/C++ library functions are not available and should not be
used in Palm programs.  A few of the standard functions have Palm API
equivalents, which should be used instead.  For anything else not in
there, you either need to write it yourself or possibly use a shared
library, such as the MathLib library.  AFAIK, there is no "stdlib"
library available.

-- 
Brian Mathis
Direct Edge
http://www.directedge.com


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

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