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

Error compilaton #189

Open
pit65 opened this issue Mar 1, 2022 · 2 comments
Open

Error compilaton #189

pit65 opened this issue Mar 1, 2022 · 2 comments

Comments

@pit65
Copy link

pit65 commented Mar 1, 2022

Slackware 15

error compilation scantailor 1.0.16.

[ 41%] Building CXX object foundation/CMakeFiles/foundation.dir/PropertyFactory.cpp.o
[ 42%] Building CXX object foundation/CMakeFiles/foundation.dir/PropertySet.cpp.o
[ 42%] Building CXX object foundation/CMakeFiles/foundation.dir/PerformanceTimer.cpp.o
[ 42%] Building CXX object foundation/CMakeFiles/foundation.dir/QtSignalForwarder.cpp.o
[ 42%] Building CXX object foundation/CMakeFiles/foundation.dir/GridLineTraverser.cpp.o
[ 42%] Linking CXX static library libfoundation.a
[ 42%] Built target foundation
[ 42%] Building CXX object math/CMakeFiles/math.dir/LinearSolver.cpp.o
[ 42%] Building CXX object math/CMakeFiles/math.dir/SidesOfLine.cpp.o
[ 42%] Building CXX object math/CMakeFiles/math.dir/ToLineProjector.cpp.o
/tmp/SBo/scantailor-advanced-1.0.16/math/ToLineProjector.cpp: In constructor ‘ToLineProjector::ToLineProjector(const QLineF&)’:
/tmp/SBo/scantailor-advanced-1.0.16/math/ToLineProjector.cpp:27:23: error: ‘numeric_limits’ was not declared in this scope
   27 |   if (std::abs(AtA) > numeric_limits<double>::epsilon()) {
      |                       ^~~~~~~~~~~~~~
/tmp/SBo/scantailor-advanced-1.0.16/math/ToLineProjector.cpp:27:38: error: expected primary-expression before ‘double’
   27 |   if (std::abs(AtA) > numeric_limits<double>::epsilon()) {
      |                                      ^~~~~~
/tmp/SBo/scantailor-advanced-1.0.16/math/ToLineProjector.cpp:27:38: error: expected ‘)’ before ‘double’
   27 |   if (std::abs(AtA) > numeric_limits<double>::epsilon()) {
      |      ~                               ^~~~~~
      |                                      )
make[2]: *** [math/CMakeFiles/math.dir/build.make:104: math/CMakeFiles/math.dir/ToLineProjector.cpp.o] Błąd 1
make[1]: *** [CMakeFiles/Makefile2:715: math/CMakeFiles/math.dir/all] Błąd 2
make: *** [Makefile:166: all] Błąd 2

@mara004
Copy link

mara004 commented Mar 2, 2022

Which compiler are you using, and at which version?

@trufanov-nok
Copy link
Contributor

try to add #include <limits> in this file.

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

3 participants