Re: 'lround' is not a member of 'std'

Thomas Klausner <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Mon, Jun 10, 2024 at 05:01:24AM +1000, Matthew Green wrote:
> Thomas Klausner writes:
> > Hi!
> >
> > When compiling mame on NetBSD-current, I see
> >
> > ../../../../../src/osd/modules/input/input_sdl.cpp:891:16: error: 'lround' is not a member of 'std'; did you mean 'lround'?
> >
> > I worked around it by removing the "std::" in the package and reported
> > this upstream.
> 
> /usr/include/g++/bits/x86_64/c++config.h:/* #undef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP */
> 
> is what i see in both GCC 10 and GCC 12 builds.  i'll have to
> have a look at what the configure doesn't like.  looks like
> we may just be missing some it wants?  there's also another
> __CORRECT_ISO_CPP11_MATH_H_PROTO_INT we don't have set, and
> their comments are:
> 
> /* Define if all C++11 floating point overloads are available in <math.h>.  */
> 
> /* Define if all C++11 integral type overloads are available in <math.h>.  */

Sorry, it was a plain missing include of <cmath> :)

Thanks!
 Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.