Hi all,

I am working on a PalmOS program which should include mathematical functions, 
but I can’t carry it off that I can use the math.h library.

Sample source:

#include <math.h>

…
Double dvalue;
dvalue = pow(2,2);
…

Eclipse error code:
…
***[Test] Error 1
warning: conflicting types for built-in function ‘cos’
warning: conflicting types for built-in function ‘sin’
warning: conflicting types for built-in function ‘sqrt’
in function ‘MyMathFunction’:: undefined reference to ‘pow’
undefined reference to ‘pow’
conflicting types for built-in function 
`sin'[/usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/../../../../m68k-palmos/include/math.h]
  
conflicting types for built-in function 
`sqrt'[/usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/../../../../m68k-palmos/include/math.h]
 
in inclusion 
/usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/../../../../m68k-palmos/include/math.h:138
        

Please help me? What’s wrong?

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

Reply via email to