Re: 'lround' is not a member of 'std'
Thomas Klausner <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jun 08, 2024 at 05:28:34PM +0200, Martin Husemann wrote:
> On Sat, Jun 08, 2024 at 04:53:59PM +0200, Thomas Klausner wrote:
> > Is there something we need to fix in NetBSD here?
>
> Seems to work for me:
>
> --8<--
> [/tmp] martin@martins > c++ -Wall -O2 -o blah test.cc
> [/tmp] martin@martins > ./blah
> [/tmp] martin@martins > echo $status
> 2
> [/tmp] martin@martins > cat test.cc
> #include <cmath>
>
> int main(int argc, char **argv)
> {
> long double v = 1.7;
> auto a = std::lround(v);
> return a;
> }
> -->8--
Thanks. But it doesn't when I remove the 'cmath' include. I'll test
adding that for mame.
Thomas