This is the mail archive of the
mailing list for the eCos project.
Re: Testing newlib
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Visar Zejnullahu <visar at siva dot mk>
- Cc: ecos-devel at ecos dot sourceware dot org
- Date: Mon, 25 Jul 2011 21:01:58 +0300 (EEST)
- Subject: Re: Testing newlib
- References: <4E2D53B4.email@example.com>
On Mon, 25 Jul 2011, Visar Zejnullahu wrote:
> As announced here:
> http://sourceware.org/ml/ecos-devel/2011-07/msg00003.html we are working
> on a port of Newlib's single precision floating point math library
> (float vs double...).
> I know part of the questions should be addressed to the Newlib's mailing
> list (which I have done as well), but I am asking help on the Ecos part
> of the problems.
[cut set of Q that I do not have the expertise]
> And lastly, about the gamma function - I've used the tests provided
> from Newlib, and when I try to compile the test files about this
> function, I get the error
> undefined reference to `signgam'. Can anyone help on this?
Look, please, at ecos math.h:160
// FIXME: these need to be documented and signgam mentioned as non-ISO
// This returns the address of the signgam variable used by the gamma*() and
// lgamma*() functions
externC int *
cyg_libm_get_signgam_p( void );
#define signgam (*cyg_libm_get_signgam_p())
I think you will get it. Also, the next point to look on
IMHO, the option's description attribute is the very informative.