float
mike
mike@penbex.com.tw
Mon Dec 25 17:30:00 GMT 2000
It looks like you forget link
your program with certain library.
I have no experience on writing
program on palm but seems you
use prc-tools(gcc for palm).
If that is ture, why not send
your mail to
prc-tools-devel@lists.sourceforge.net
again.
----- Original Message -----
From: Manuel Molina
To: crossgcc@sourceware.cygnus.com
Sent: Monday, December 25, 2000 5:52 PM
Subject: float
Hi you all
I am trying to write a palm program who needs to make a comparation between
a float variable and a constant in an if statement:
Char *sVar;
FlpDouble fVar;
...
fldVarPtr = FrmGetObjectPtr( frm, FrmGetObjectIndex( frm, FLD_VAR ) ); //
get the value from the field
sVar = FldGetTextPtr( fldVarPtr );
// into sVar
FplInit();
fVar = FplAToF( sVar ); // convert string into float
if ( fVar < 3.5 ){...}
...
When I try to link the file, I get the next error message:
undefined reference to 'FplInit'
undefined reference to 'FplAToF'
I've tried declaring fVar as a double and using atof() instead of FplAToF,
but I get the same results:
undefined reference to 'atof'
I am using Palm OS ver. 3.0. How can I get to compile and link the program
using floating-point arithmetic?
Thanks in advance
Manolo
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list