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

Issue when compiling on Ubuntu 22.10 with limits #9

Open
javierarbelaiz opened this issue Jan 2, 2023 · 1 comment
Open

Issue when compiling on Ubuntu 22.10 with limits #9

javierarbelaiz opened this issue Jan 2, 2023 · 1 comment

Comments

@javierarbelaiz
Copy link

/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp: In member function ‘void apl::scaling::{anonymous}::ScalingCalculator::minimumFixedHeight(double, double, double, Size&, double&)’:
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp:76:33: error: ‘numeric_limits’ is not a member of ‘std’
76 | double localCost = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp:76:48: error: expected primary-expression before ‘double’
76 | double localCost = std::numeric_limits::max();
| ^~~~~~
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp: In member function ‘void apl::scaling::{anonymous}::ScalingCalculator::minimumFixedWidth(double, double, double, Size&, double&)’:
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp:117:33: error: ‘numeric_limits’ is not a member of ‘std’
117 | double localCost = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp:117:48: error: expected primary-expression before ‘double’
117 | double localCost = std::numeric_limits::max();
| ^~~~~~
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp: In function ‘std::tuple<double, apl::Metrics, apl::ViewportSpecification> apl::scaling::calculate(const apl::Metrics&, const apl::ScalingOptions&)’:
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp:190:24: error: ‘numeric_limits’ is not a member of ‘std’
190 | double cost = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
/root/sdk-folder/src/apl-core-library/aplcore/src/scaling/scalingcalculator.cpp:190:39: error: expected primary-expression before ‘double’
190 | double cost = std::numeric_limits::max();
| ^~~~~~
make[2]: *** [aplcore/CMakeFiles/apl.dir/build.make:2638: aplcore/CMakeFiles/apl.dir/src/scaling/scalingcalculator.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:716: aplcore/CMakeFiles/apl.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
root@lola-System-Product-Name:~/sdk-folder/src/apl-core-library/build#

before perform this compiling add in scalingcalculator.h

#include <stddef.h>
#include <limits.h>

Please help me to resolve that issue.

@jacobjuneau6
Copy link

Same issue
Instead of #include <limits.h> use #include<limits>

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