tech-toolchain archive

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

'lround' is not a member of 'std'


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.

Upstream replied[1]:

--- begin ---

The title of this issue is factually incorrect – lround is a member of namespace std (round and return long int, overloaded for standard floating point types):

This is implemented correctly in GNU libstdc++ and llvm libc++. The patch is not correct.

--- end ---

Is there something we need to fix in NetBSD here?



Home | Main Index | Thread Index | Old Index