0
我在Boost圖庫初學者,在編譯我得到了以下錯誤:加速圖形包裝編譯錯誤
mytree.cpp:80: error: expected init-declarator before '<' token
這裏是入錯行:
typedef boost::labeled_graph<adjacency_list<vecS, vecS, bidirectionalS, VertexDesc>,std::string> Graph;
五月幫助我的人?
在此先感謝。
我看來,像錯誤是不是在該行,但在周圍的線某處。另外,你爲什麼要爲'label_graph'命名空間,而不是'adjacency_list'?也許這裏存在一個微妙的問題。 – us2012 2013-03-06 14:53:32