Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

world.cc compile error: call of overloaded ‘abs(const double&)’ is ambiguous #63

Closed
mjbogusz opened this issue May 20, 2016 · 1 comment

Comments

@mjbogusz
Copy link

The problem originates in using C's stdlib.h (and its abs()) instead of 'proper' C++ cmath.
Occured with g++ 6.1.1, on Archlinux x86_64.

This patch solves the problem while modifying the code as less as possible: world_cc_abs.patch.txt

I've encountered another compile errors too but there's already a PR fixing them.

@rtv
Copy link
Owner

rtv commented Apr 5, 2017

thanks for the fix. We use std::abs() explicitly now.

@rtv rtv closed this as completed Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants