> Date: Wed, 27 ,Feb 2008 07:35:36 -0800
> From: dhylands@...
> To: gumstix-users@...
> Subject: Re: [Gumstix-users] FW: Gumstix Makefile,include problems!
> Hi João,
> > I got the same output that you:
> > grep DO_C99_MATH uClibc.config
> > DO_C99_MATH=y
> > i done:
> > grep --color -R -w round /usr/avr/include/
> > and i don't get any output, it isn't defined in math.h, instead all other functions like abs,sin,cos,exp are there and i use it without any problems.
> > it should be normal that round function is not defined in math.h?
> /usr/avr/include is used when compiling code using the AVR cross
> compiler. I thought you were compiling stuff for the gumstix?
Misunderstanding, just gumstix stuff!
> In which case you want to look in
> gumstix-buildroot/build_arm_nofpu/staging_dir/include, and you should
> find the following
> include/bits/mathcalls.h:__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
> which is #included from math.h
i found it!
__MATHCALL (round,, (_Mdouble_ __x));
In last mail i told you that i have done this:
nm libm.a | grep round
i get only this output
roundf.o:it should be normal?
if i do the same thing to other functions like sin,cos,exp,abs, sqrt i got bigger outputs like:
00000000 T __ieee754_sqrt
00000000 T sqrt
00000000 T sqrtf
> Whether its defined in the header file is a separate issue from it
> being defined in the appropriate library.
> Which version of buildroot are you using?
(I just checked and is the same both on gumstix and computer!)
> Dave Hylands
> Vancouver, BC, Canada
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> gumstix-users mailing list
Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps!