octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib warnings when compiling Faddeeva.cc


From: Júlio Hoffimann
Subject: Re: gnulib warnings when compiling Faddeeva.cc
Date: Sun, 9 Dec 2012 16:01:26 -0300

Yes, John explained it to me, there is a trick with _GL_CXXALIAS_SYS and _GL_CXXALIASWARN. The first macro creates an alias to the system implementation and the second produces the warning whenever we use the function without the gnulib namespace.

What about the copysign() then? It's a C++11 feature.

By the way:
http://en.cppreference.com/w/cpp/numeric/math/erf
http://en.cppreference.com/w/cpp/numeric/math/erfc

Best,
Júlio.


2012/12/9 Jordi Gutiérrez Hermoso <address@hidden>
On 9 December 2012 13:15, Júlio Hoffimann <address@hidden> wrote:
> It must have something to do with the build system?

Yeah, look at build-aux/boostrap_gnulib.conf. I believe it's just a
matter of adding the functions in the warnings to this list.

> Why is gnulib::floor() preferred over std::floor()?

The purpose of gnulib is to provide compatibility functions across
platforms. More than 20 years after the C standard was first
published, and we still can't agree on what "floor" is supposed to do
and where it's supposed to be available, I guess.

    http://www.gnu.org/software/gnulib/manual/html_node/floor.html#floor

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]