Errors to build 'set' in namespace 'std' does not name template
chaiein opened this issue · 6 comments
I got lots of errors for 'set', visibility, so on Please let me know how to solve this.
~/VR/Line3Dpp/build$ make
[ 5%] Building CXX object CMakeFiles/line3Dpp.dir/line3D.cc.o[ 5%] Building CXX object CMakeFiles/line3Dpp.dir/line3D.cc.o
In file included from /home/chaiein/VR/Line3Dpp/view.h:43:0,
from /home/chaiein/VR/Line3Dpp/line3D.h:48,
from /home/chaiein/VR/Line3Dpp/line3D.cc:1:
/home/chaiein/VR/Line3Dpp/segment3D.h:194:14: error: ‘set’ in namespace ‘std’ does not name a template type
std::set visibility_;
^
/home/chaiein/VR/Line3Dpp/segment3D.h: In member function ‘void L3DPP::FinalPoint3D::serialize(Archive&, unsigned int)’:
/home/chaiein/VR/Line3Dpp/segment3D.h:201:64: error: ‘visibility_’ was not declared in this scope
ar & boost::serialization::make_nvp("visibility_", visibility_);
^
In file included from /home/chaiein/VR/Line3Dpp/line3D.cc:1:0:
/home/chaiein/VR/Line3Dpp/line3D.h: At global scope:
/home/chaiein/VR/Line3Dpp/line3D.h:380:14: error: ‘set’ in namespace ‘std’ does not name a template type
std::set views_reserved_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:392:31: error: ‘set’ is not a member of ‘std’
std::map<unsigned int,std::set > visual_neighbors_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:392:31: error: ‘set’ is not a member of ‘std’
/home/chaiein/VR/Line3Dpp/line3D.h:392:52: error: template argument 2 is invalid
std::map<unsigned int,std::set > visual_neighbors_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:392:52: error: template argument 4 is invalid
/home/chaiein/VR/Line3Dpp/line3D.h:392:54: error: expected unqualified-id before ‘>’ token
std::map<unsigned int,std::set > visual_neighbors_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:400:31: error: ‘set’ is not a member of ‘std’
std::map<unsigned int,std::set > matched_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:400:31: error: ‘set’ is not a member of ‘std’
/home/chaiein/VR/Line3Dpp/line3D.h:400:52: error: template argument 2 is invalid
std::map<unsigned int,std::set > matched_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:400:52: error: template argument 4 is invalid
/home/chaiein/VR/Line3Dpp/line3D.h:400:54: error: expected unqualified-id before ‘>’ token
std::map<unsigned int,std::set > matched_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:431:35: error: ‘set’ is not a member of ‘std’
std::map<L3DPP::Segment2D,std::setL3DPP::Segment2D > used_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:431:35: error: ‘set’ is not a member of ‘std’
/home/chaiein/VR/Line3Dpp/line3D.h:431:60: error: template argument 2 is invalid
std::map<L3DPP::Segment2D,std::setL3DPP::Segment2D > used_;
^
/home/chaiein/VR/Line3Dpp/line3D.h:431:60: error: template argument 4 is invalid
/home/chaiein/VR/Line3Dpp/line3D.h:431:62: error: expected unqualified-id before ‘>’ token
std::map<L3DPP::Segment2D,std::setL3DPP::Segment2D > used_;
^
/home/chaiein/VR/Line3Dpp/line3D.cc: In member function ‘void L3DPP::Line3D::addImage(unsigned int, cv::Mat&, const Matrix3d&, const Matrix3d&, const Vector3d&, float, const std::cxx11::list&, const std::vector<cv::Vec<float, 4> >&)’:
/home/chaiein/VR/Line3Dpp/line3D.cc:130:12: error: ‘views_reserved’ was not declared in this scope
if(views_reserved.find(camID) != views_reserved_.end())
^
/home/chaiein/VR/Line3Dpp/line3D.cc:145:12: error: ‘views_reserved_’ was not declared in this scope
if(views_reserved_.size() == 1)
^
/home/chaiein/VR/Line3Dpp/line3D.cc:212:9: error: ‘visual_neighbors_’ was not declared in this scope
visual_neighbors_[camID] = std::set();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:212:36: error: ‘set’ is not a member of ‘std’
visual_neighbors_[camID] = std::set();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:212:45: error: expected primary-expression before ‘unsigned’
visual_neighbors_[camID] = std::set();
^
/home/chaiein/VR/Line3Dpp/line3D.cc: In member function ‘void L3DPP::Line3D::matchImages(float, float, unsigned int, float, int, float)’:
/home/chaiein/VR/Line3Dpp/line3D.cc:416:9: error: ‘matched_’ was not declared in this scope
matched_.clear();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:469:20: error: ‘visual_neighbors_’ was not declared in this scope
if(visual_neighbors_[camID].size() == 0)
^
/home/chaiein/VR/Line3Dpp/line3D.cc: In member function ‘void L3DPP::Line3D::findVisualNeighborsFromWPs(unsigned int)’:
/home/chaiein/VR/Line3Dpp/line3D.cc:580:12: error: ‘visual_neighbors_’ was not declared in this scope
if(visual_neighbors_.find(camID) != visual_neighbors_.end())
^
/home/chaiein/VR/Line3Dpp/line3D.cc:615:13: error: ‘set’ is not a member of ‘std’
std::set used_neighbors;
^
/home/chaiein/VR/Line3Dpp/line3D.cc:615:22: error: expected primary-expression before ‘unsigned’
std::set used_neighbors;
^
/home/chaiein/VR/Line3Dpp/line3D.cc:674:43: error: ‘used_neighbors’ was not declared in this scope
while(nit!=neighbors.end() && used_neighbors.size() < num_neighbors_)
^
/home/chaiein/VR/Line3Dpp/line3D.cc:682:21: error: ‘set’ is not a member of ‘std’
std::set::const_iterator u_it = used_neighbors.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:682:30: error: expected primary-expression before ‘unsigned’
std::set::const_iterator u_it = used_neighbors.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:684:27: error: ‘u_it’ was not declared in this scope
for(; u_it!=used_neighbors.end() && valid; ++u_it)
^
/home/chaiein/VR/Line3Dpp/line3D.cc:697:40: error: ‘used_neighbors’ was not declared in this scope
visual_neighbors_[camID] = used_neighbors;
^
/home/chaiein/VR/Line3Dpp/line3D.cc: In member function ‘void L3DPP::Line3D::computeMatches()’:
/home/chaiein/VR/Line3Dpp/line3D.cc:704:31: error: ‘set’ is not a member of ‘std’
std::map<unsigned int,std::set >::const_iterator it = visual_neighbors_.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:704:31: error: ‘set’ is not a member of ‘std’
/home/chaiein/VR/Line3Dpp/line3D.cc:704:52: error: template argument 2 is invalid
std::map<unsigned int,std::set >::const_iterator it = visual_neighbors_.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:704:52: error: template argument 4 is invalid
/home/chaiein/VR/Line3Dpp/line3D.cc:704:54: error: expected unqualified-id before ‘>’ token
std::map<unsigned int,std::set >::const_iterator it = visual_neighbors_.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:705:15: error: ‘it’ was not declared in this scope
for(; it!=visual_neighbors_.end(); ++it)
^
/home/chaiein/VR/Line3Dpp/line3D.cc:705:19: error: ‘visual_neighbors_’ was not declared in this scope
for(; it!=visual_neighbors_.end(); ++it)
^
/home/chaiein/VR/Line3Dpp/line3D.cc:719:13: error: ‘set’ is not a member of ‘std’
std::set::const_iterator n_it = it->second.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:719:22: error: expected primary-expression before ‘unsigned’
std::set::const_iterator n_it = it->second.begin();
^
/home/chaiein/VR/Line3Dpp/line3D.cc:720:19: error: ‘n_it’ was not declared in this scope
for(; n_it!=it->second.end(); ++n_it)
^
/home/chaiein/VR/Line3Dpp/line3D.cc:722:20: error: ‘matched_’ was not declared in this scope
if(matched_[it->first].find(*n_it) == matched_[it->first].end())
I have updated the issue with more details.