Perhaps libm isn't available for MSPGCC?
-- Paul.
> -----Original Message-----
> From: HEX.loader [mailto:hexloader@hexl...]
> Sent: 11 May 2005 12:23
> To: msp430@msp4...
> Subject: [msp430] BIG problems with math.h
>
> hello
>
> I need to make such a move: 2 ^ 5, so, I write pow (2,5) and
> I get this error: "[Linker error] undefined reference to `pow'
".
> why?
> I tried other compilers and all was ok, but on mspgcc I dont work.
> All paths are ok, ie when i write pow (2), then compiler says:
> "too few arguments to function `pow' ", so I can say then,
> that compiler had found math.h, coz he know what a function
> it is, but why it dont work pow (2,5) ???
> in my math.h it is:
>
> #ifndef _REENT_ONLY
> #ifndef __math_6881
> extern double acos _PARAMS((double));
> extern double asin _PARAMS((double));
> extern double atan2 _PARAMS((double, double)); extern double
> cosh _PARAMS((double)); extern double sinh _PARAMS((double));
> extern double exp _PARAMS((double)); extern double ldexp
> _PARAMS((double, int)); extern double log _PARAMS((double));
> extern double log10 _PARAMS((double)); extern double pow
> _PARAMS((double, double)); extern double sqrt
> _PARAMS((double)); extern double fmod _PARAMS((double,
> double)); #endif /* ! defined (__math_68881) */ #endif /* !
> defined (_REENT_ONLY) */
>
> Now I have my own pow function, but its very important to me,
> coz I'll need soon sqrt and tan functions but all has the same syntax.
>
> anyone...help me!
>
>
> .
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
Re: BIG problems with math.h
Started by ●May 11, 2005