简体   繁体   中英

Boost graph wrapper compilation error

I'm a beginner in boost graph library and I got the following error while compiling :

mytree.cpp:80: error: expected init-declarator before '<' token

Here is the wrong line :

typedef boost::labeled_graph<adjacency_list<vecS, vecS, bidirectionalS, VertexDesc>,std::string> Graph;

May someone help me?

Thanks in advance.

对于那些感兴趣的人,我只是忘记添加以下行:

#include <boost/graph/labeled_graph.hpp>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM