opal icon indicating copy to clipboard operation
opal copied to clipboard

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

Open FadelBerakdar opened this issue 8 years ago • 1 comments

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

FadelBerakdar avatar Aug 05 '16 07:08 FadelBerakdar

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

Martinsos avatar Aug 17 '16 07:08 Martinsos