profile
viewpoint

Ask questionsBuild fails (gcc): error: 'uint' was not declared in this scope;

gcc8 prints these errors:

/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc: In function 'glm::vec3 getCentroid(const std::vector<glm::vec<3, float, (glm::qualifier)0> >&)':
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:53:10: error: 'uint' was not declared in this scope
     for (uint i = 0; i < _pts.size(); i++) {
          ^~~~
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:53:10: note: suggested alternative:
In file included from /usr/ports/math/curv/work/curv-0.4-83-g49b28a58/extern/glm/glm/glm.hpp:105,
                 from /usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.h:5,
                 from /usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:1:
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/extern/glm/glm/detail/setup.hpp:606:23: note:   'glm::uint'
  typedef unsigned int uint;
                       ^~~~
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:53:22: error: 'i' was not declared in this scope
     for (uint i = 0; i < _pts.size(); i++) {
                      ^
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc: In function 'std::vector<glm::vec<3, float, (glm::qualifier)0> > getConvexHull(std::vector<glm::vec<3, float, (glm::qualifier)0> >&)':
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:93:5: error: 'uint' was not declared in this scope
     uint currentPoint = 2;
     ^~~~
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:93:5: note: suggested alternative:
In file included from /usr/ports/math/curv/work/curv-0.4-83-g49b28a58/extern/glm/glm/glm.hpp:105,
                 from /usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.h:5,
                 from /usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:1:
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/extern/glm/glm/detail/setup.hpp:606:23: note:   'glm::uint'
  typedef unsigned int uint;
                       ^~~~
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/libcurv/geom/viewer/geom.cc:98:31: error: 'currentPoint' was not declared in this scope
         hull.push_back(pts.at(currentPoint));
                               ^~~~~~~~~~~~
curv3d/curv

Answer questions doug-moen

I can't test with gcc8 right now, but that should fix the problem.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List