Skip to content

some errors about licvd #99

@TengFeiHan0

Description

@TengFeiHan0

when I intended to run the tum_ardrone package, I got these unexpected errors.
I was guessing it probably derived from the licvd, but I don't know how the fix it?

cvd_src/image_io/cvdimage.cxx:864:53: error: reference to ‘array’ is ambiguous
 void WritePimpl::write_hist(std::ostream& os, const array<size_t, 256>& h)
                                                     ^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
                 from /usr/include/c++/6/functional:55,
                 from /usr/include/c++/6/memory:79,
                 from ./cvd/internal/io/cvdimage.h:27,
                 from cvd_src/image_io/cvdimage.cxx:24:
/usr/include/c++/6/array:90:12: note: candidates are: template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^~~~~
In file included from cvd_src/image_io/cvdimage.cxx:46:0:
/usr/include/c++/6/tr1/array:57:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::tr1::array
     struct array
            ^~~~~
cvd_src/image_io/cvdimage.cxx:864:58: error: expected ‘,’ or ‘...’ before ‘<’ token
 void WritePimpl::write_hist(std::ostream& os, const array<size_t, 256>& h)
                                                          ^
cvd_src/image_io/cvdimage.cxx: In member function ‘void CVD::CVDimage::WritePimpl::write_hist(std::ostream&, int)’:
cvd_src/image_io/cvdimage.cxx:869:31: error: ‘h’ was not declared in this scope
  for (unsigned int i = 0; i < h.size(); i++) {
                               ^
cvd_src/image_io/cvdimage.cxx: In destructor ‘CVD::CVDimage::WritePimpl::~WritePimpl()’:
cvd_src/image_io/cvdimage.cxx:898:2: error: reference to ‘array’ is ambiguous
  array<size_t, 256> h;
  ^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
                 from /usr/include/c++/6/functional:55,
                 from /usr/include/c++/6/memory:79,
                 from ./cvd/internal/io/cvdimage.h:27,
                 from cvd_src/image_io/cvdimage.cxx:24:
/usr/include/c++/6/array:90:12: note: candidates are: template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^~~~~
In file included from cvd_src/image_io/cvdimage.cxx:46:0:
/usr/include/c++/6/tr1/array:57:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::tr1::array
     struct array
            ^~~~~
cvd_src/image_io/cvdimage.cxx:898:14: error: expected primary-expression before ‘,’ token
  array<size_t, 256> h;
              ^
cvd_src/image_io/cvdimage.cxx:898:21: error: ‘h’ was not declared in this scope
  array<size_t, 256> h;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions