We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get the following build error when calling make on OSX.
make
CXX src/GroupOfPlanes.lo In file included from src/GroupOfPlanes.cpp:20: In file included from src/GroupOfPlanes.h:21: src/PlaneOfBlocks.h:208:66: error: use of undeclared identifier 'abs' ...sad = (SAD(dctSrc, dctpitch, dctRef, dctpitch) + abs(dctSrc[0]-dctRef[0]... ^ src/PlaneOfBlocks.h:215:76: error: use of undeclared identifier 'abs' ...int dctsad = (SAD(dctSrc, dctpitch, dctRef, dctpitch)+ abs(dctSrc[0]-dct... ^ src/PlaneOfBlocks.h:222:21: error: use of undeclared identifier 'abs' if (abs(srcLuma - refLuma) > (srcLuma + refLuma)>>5) ^ src/PlaneOfBlocks.h:232:21: error: use of undeclared identifier 'abs' if (abs(srcLuma - refLuma) > (srcLuma + refLuma)>>5) ^ src/PlaneOfBlocks.h:253:21: error: use of undeclared identifier 'abs' if (abs(srcLuma - refLuma) > (srcLuma + refLuma)>>5) ^ src/PlaneOfBlocks.h:262:21: error: use of undeclared identifier 'abs' if (abs(srcLuma - refLuma) > (srcLuma + refLuma)>>5) ^ src/PlaneOfBlocks.h:280:21: error: use of undeclared identifier 'abs' if (abs(srcLuma - refLuma) > (srcLuma + refLuma)>>4) ^ 7 errors generated. make: *** [src/GroupOfPlanes.lo] Error 1
The text was updated successfully, but these errors were encountered:
Does this help?
diff --git a/src/PlaneOfBlocks.h b/src/PlaneOfBlocks.h index 431c340..04bc284 100644 --- a/src/PlaneOfBlocks.h +++ b/src/PlaneOfBlocks.h @@ -18,6 +18,8 @@ #ifndef __POBLOCKS__ #define __POBLOCKS__ +#include <cstdlib> + #include "MVInterface.h" #include "Interpolation.h" #include "CopyCode.h"
Sorry, something went wrong.
Seems to have done the trick.
All right then. Thanks for the report.
9c73496
No branches or pull requests
I get the following build error when calling
make
on OSX.The text was updated successfully, but these errors were encountered: