Advertisement
maelv

Untitled

Jun 4th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.06 KB | None | 0 0
  1. 10:48:53 **** Build of configuration Debug for project graph-boost ****
  2. make all
  3. Building file: ../max_flow_avec_bundled_properties.cpp
  4. Invoking: Cross G++ Compiler
  5. g++-5 -std=c++11 -I/home/maelv/cpp/boost_1_58_0/include -O0 -g3 -Wall -c -fmessage-length=0 -Wdeprecated-declarations -MMD -MP -MF"max_flow_avec_bundled_properties.d" -MT"max_flow_avec_bundled_properties.d" -o "max_flow_avec_bundled_properties.o" "../max_flow_avec_bundled_properties.cpp"
  6.  
  7. In file included from /home/maelv/cpp/boost_1_58_0/include/boost/graph/adjacency_list.hpp:246:0,
  8.                  from ../max_flow_avec_bundled_properties.cpp:12:
  9. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp: In instantiation of ‘struct boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t, boost::edge_capacity_t>:
  10. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp:2728:12:   required from ‘struct boost::detail::adj_list_choose_edge_pmap<boost::edge_capacity_t, boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t>
  11. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp:2733:14:   required from ‘struct boost::detail::adj_list_edge_property_selector::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t, boost::edge_capacity_t>
  12. /home/maelv/cpp/boost_1_58_0/include/boost/graph/properties.hpp:192:12:   required from ‘struct boost::detail::edge_property_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, boost::edge_capacity_t>
  13. /home/maelv/cpp/boost_1_58_0/include/boost/graph/properties.hpp:212:10:   required from ‘struct boost::property_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, boost::edge_capacity_t, void>
  14. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:18:1:   required by substitution of ‘template<class Graph, class Capacity, class ResidualCapacity, class Weight> typename boost::property_traits<typename boost::property_map<Graph, boost::edge_capacity_t>::type>::value_type boost::find_flow_cost(const Graph&, Capacity, ResidualCapacity, Weight) [with Graph = boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>; Capacity = boost::adj_list_edge_property_map<boost::directed_tag, double, double&, long unsigned int, edge_t, double edge_t::*>; ResidualCapacity = boost::adj_list_edge_property_map<boost::directed_tag, float, float&, long unsigned int, edge_t, float edge_t::*>; Weight = boost::adj_list_edge_property_map<boost::directed_tag, float, float&, long unsigned int, edge_t, float edge_t::*>]
  15. ../max_flow_avec_bundled_properties.cpp:95:50:   required from here
  16. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp:2696:29: error: forming reference to void
  17.          typedef value_type& reference;
  18.                              ^
  19. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp:2697:35: error: forming reference to void
  20.          typedef const value_type& const_reference;
  21.                                    ^
  22. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp:2701:61: error: forming reference to void
  23.              typename Graph::vertex_descriptor,Property,Tag> type;
  24.                                                              ^
  25. /home/maelv/cpp/boost_1_58_0/include/boost/graph/detail/adjacency_list.hpp:2704:68: error: forming reference to void
  26.              typename Graph::vertex_descriptor,const Property, Tag> const_type;
  27.                                                                     ^
  28. ../max_flow_avec_bundled_properties.cpp: In function ‘int main():
  29. ../max_flow_avec_bundled_properties.cpp:95:50: error: no matching function for call to ‘find_flow_cost(Graph&, boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t, double edge_t::*>::type&, boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t, float edge_t::*>::type&, boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t, float edge_t::*>::type&)
  30.   find_flow_cost(g,capacity,residual_capacity,cost);
  31.                                                   ^
  32. In file included from ../max_flow_avec_bundled_properties.cpp:15:0:
  33. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:18:1: note: candidate: template<class Graph, class Capacity, class ResidualCapacity, class Weight> typename boost::property_traits<typename boost::property_map<Graph, boost::edge_capacity_t>::type>::value_type boost::find_flow_cost(const Graph&, Capacity, ResidualCapacity, Weight)
  34.  find_flow_cost(const Graph & g, Capacity capacity, ResidualCapacity residual_capacity, Weight weight) {
  35.  ^
  36. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:18:1: note:   substitution of deduced template arguments resulted in errors seen above
  37. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:32:1: note: candidate: template<class Graph, class P, class T, class R> typename boost::property_traits<typename boost::property_map<Graph, boost::edge_capacity_t>::type>::value_type boost::find_flow_cost(const Graph&, const boost::bgl_named_params<T, Tag, Base>&)
  38.  find_flow_cost(const Graph & g,
  39.  ^
  40. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:32:1: note:   template argument deduction/substitution failed:
  41. ../max_flow_avec_bundled_properties.cpp:95:50: note:   ‘boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, node_t, edge_t>, edge_t, double edge_t::*>::type {aka boost::adj_list_edge_property_map<boost::directed_tag, double, double&, long unsigned int, edge_t, double edge_t::*>}’ is not derived from ‘const boost::bgl_named_params<T, Tag, Base>
  42.   find_flow_cost(g,capacity,residual_capacity,cost);
  43.                                                   ^
  44. In file included from ../max_flow_avec_bundled_properties.cpp:15:0:
  45. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:43:1: note: candidate: template<class Graph> typename boost::property_traits<typename boost::property_map<Graph, boost::edge_capacity_t>::type>::value_type boost::find_flow_cost(const Graph&)
  46.  find_flow_cost(const Graph &g) {
  47.  ^
  48. /home/maelv/cpp/boost_1_58_0/include/boost/graph/find_flow_cost.hpp:43:1: note:   template argument deduction/substitution failed:
  49. ../max_flow_avec_bundled_properties.cpp:95:50: note:   candidate expects 1 argument, 4 provided
  50.   find_flow_cost(g,capacity,residual_capacity,cost);
  51.                                                   ^
  52. ../max_flow_avec_bundled_properties.cpp:83:13: warning: unused variable ‘flow_cost’ [-Wunused-variable]
  53.   long flow, flow_cost;
  54.              ^
  55. make: *** [max_flow_avec_bundled_properties.o] Error 1
  56.  
  57. 10:48:57 Build Finished (took 3s.628ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement