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

no member named 'abs' in namespace 'std'; #30

Open
FadelBerakdar opened this issue Aug 5, 2016 · 1 comment
Open

no member named 'abs' in namespace 'std'; #30

FadelBerakdar opened this issue Aug 5, 2016 · 1 comment

Comments

@FadelBerakdar
Copy link

FadelBerakdar commented Aug 5, 2016

I got this error while trying to execute make

g++ -std=c++11 -march=native -Wall -O3 -c opal.cpp
opal.cpp:1169:45: error: no member named 'abs' in namespace 'std'; did you mean simply 'abs'?
if (M * std::min(Q, T) - gapPenalty(std::abs(Q - T), Go, Ge) >= k) {
^~~~~~~~
abs
/usr/include/stdlib.h:129:6: note: 'abs' declared here
int abs(int) __pure2;
^
1 error generated.
make: *** [opal.o] Error 1

@Martinsos
Copy link
Owner

Thanks @FadelBerakdar : what is the operating system that you are executing this on?

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