{"action":"created","issue":{"url":"https://api.github.com/repos/RoutingKit/RoutingKit/issues/1","repository_url":"https://api.github.com/repos/RoutingKit/RoutingKit","labels_url":"https://api.github.com/repos/RoutingKit/RoutingKit/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/RoutingKit/RoutingKit/issues/1/comments","events_url":"https://api.github.com/repos/RoutingKit/RoutingKit/issues/1/events","html_url":"https://github.com/RoutingKit/RoutingKit/issues/1","id":153219410,"number":1,"title":"Struggling to build RoutingKit","user":{"login":"pietercolpaert","id":347073,"avatar_url":"https://avatars.githubusercontent.com/u/347073?v=3","gravatar_id":"","url":"https://api.github.com/users/pietercolpaert","html_url":"https://github.com/pietercolpaert","followers_url":"https://api.github.com/users/pietercolpaert/followers","following_url":"https://api.github.com/users/pietercolpaert/following{/other_user}","gists_url":"https://api.github.com/users/pietercolpaert/gists{/gist_id}","starred_url":"https://api.github.com/users/pietercolpaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pietercolpaert/subscriptions","organizations_url":"https://api.github.com/users/pietercolpaert/orgs","repos_url":"https://api.github.com/users/pietercolpaert/repos","events_url":"https://api.github.com/users/pietercolpaert/events{/privacy}","received_events_url":"https://api.github.com/users/pietercolpaert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-05T12:05:32Z","updated_at":"2016-05-05T12:49:43Z","closed_at":null,"body":"I get a build error after using make both when using the committed Makefile as with a generated one:\r\n\r\n(g++ 5.2.1)\r\n\r\n```\r\npieter@pieter-werk:~/Projects/RoutingKit$ make\r\nmkdir -p build\r\ng++ -Wall -O3 -DNDEBUG -mpopcnt -mavx -std=c++11 -fPIC -Iinclude  -c src/contraction_hierarchy.cpp -o build/contraction_hierarchy.o\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:19:14: error: ‘function’ in namespace ‘std’ does not name a template type\r\n   const std::function<void(std::string)>&log_message = std::function<void(std:\r\n              ^\r\ninclude/routingkit/contraction_hierarchy.h:19:22: error: expected ‘,’ or ‘...’ before ‘<’ token\r\n   const std::function<void(std::string)>&log_message = std::function<void(std:\r\n                      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:25:14: error: ‘function’ in namespace ‘std’ does not name a template type\r\n   const std::function<void(std::string)>&log_message = std::function<void(std:\r\n              ^\r\ninclude/routingkit/contraction_hierarchy.h:25:22: error: expected ‘,’ or ‘...’ before ‘<’ token\r\n   const std::function<void(std::string)>&log_message = std::function<void(std:\r\n                      ^\r\ninclude/routingkit/contraction_hierarchy.h:31:14: error: ‘function’ in namespace ‘std’ does not name a template type\r\n   const std::function<void(std::string)>&log_message = std::function<void(std:\r\n              ^\r\ninclude/routingkit/contraction_hierarchy.h:31:22: error: expected ‘,’ or ‘...’ before ‘<’ token\r\n   const std::function<void(std::string)>&log_message = std::function<void(std:\r\n                      ^\r\ninclude/routingkit/contraction_hierarchy.h:34:40: error: ‘std::function’ has not been declared\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                                        ^\r\ninclude/routingkit/contraction_hierarchy.h:34:48: error: expected ‘,’ or ‘...’ before ‘<’ token\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                                                ^\r\ninclude/routingkit/contraction_hierarchy.h:35:40: error: ‘std::function’ has not been declared\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                                        ^\r\ninclude/routingkit/contraction_hierarchy.h:35:48: error: expected ‘,’ or ‘...’ before ‘<’ token\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                                                ^\r\ninclude/routingkit/contraction_hierarchy.h:35:30: error: ‘static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(int)’ cannot be overloaded\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                              ^\r\ninclude/routingkit/contraction_hierarchy.h:34:30: error: with ‘static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(int)’\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                              ^\r\ninclude/routingkit/contraction_hierarchy.h:40:18: error: ‘std::function’ has not been declared\r\n  void write(std::function<void(const char*, unsigned long long)>data_sink);\r\n                  ^\r\ninclude/routingkit/contraction_hierarchy.h:40:26: error: expected ‘,’ or ‘...’ before ‘<’ token\r\n  void write(std::function<void(const char*, unsigned long long)>data_sink);\r\n                          ^\r\nsrc/contraction_hierarchy.cpp:1093:22: error: prototype for ‘RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::build(unsigned int, std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, const std::function<void(std::__cxx11::basic_string<char>)>&, unsigned int)’ does not match any in class ‘RoutingKit::ContractionHierarchy’\r\n ContractionHierarchy ContractionHierarchy::build(\r\n                      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:17:30: error: candidate is: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::build(unsigned int, std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, int)\r\n  static ContractionHierarchy build(\r\n                              ^\r\nsrc/contraction_hierarchy.cpp:1137:22: error: prototype for ‘RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::build_given_rank(std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, const std::function<void(std::__cxx11::basic_string<char>)>&, unsigned int)’ does not match any in class ‘RoutingKit::ContractionHierarchy’\r\n ContractionHierarchy ContractionHierarchy::build_given_rank(\r\n                      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:22:30: error: candidate is: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::build_given_rank(std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, int)\r\n  static ContractionHierarchy build_given_rank(\r\n                              ^\r\nsrc/contraction_hierarchy.cpp:1181:22: error: prototype for ‘RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::build_given_order(std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, const std::function<void(std::__cxx11::basic_string<char>)>&, unsigned int)’ does not match any in class ‘RoutingKit::ContractionHierarchy’\r\n ContractionHierarchy ContractionHierarchy::build_given_order(\r\n                      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:28:30: error: candidate is: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::build_given_order(std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>, int)\r\n  static ContractionHierarchy build_given_order(\r\n                              ^\r\nsrc/contraction_hierarchy.cpp: In static member function ‘static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&)’:\r\nsrc/contraction_hierarchy.cpp:1308:2: error: no matching function for call to ‘RoutingKit::ContractionHierarchy::read(RoutingKit::ContractionHierarchy::read(std::istream&)::<lambda(char*, long long unsigned int)>)’\r\n  );\r\n  ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:34:30: note: candidate: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(int)\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                              ^\r\ninclude/routingkit/contraction_hierarchy.h:34:30: note:   no known conversion for argument 1 from ‘RoutingKit::ContractionHierarchy::read(std::istream&)::<lambda(char*, long long unsigned int)>’ to ‘int’\r\nsrc/contraction_hierarchy.cpp:1302:22: note: candidate: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in){\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1302:22: note:   no known conversion for argument 1 from ‘RoutingKit::ContractionHierarchy::read(std::istream&)::<lambda(char*, long long unsigned int)>’ to ‘std::istream& {aka std::basic_istream<char>&}’\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:37:30: note: candidate: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)\r\n  static ContractionHierarchy read(std::istream&in, unsigned long long file_siz\r\n                              ^\r\ninclude/routingkit/contraction_hierarchy.h:37:30: note:   candidate expects 2 arguments, 1 provided\r\nsrc/contraction_hierarchy.cpp: In static member function ‘static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)’:\r\nsrc/contraction_hierarchy.cpp:1318:2: error: no matching function for call to ‘RoutingKit::ContractionHierarchy::read(RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)::<lambda(char*, long long unsigned int)>, long long unsigned int&)’\r\n  );\r\n  ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:34:30: note: candidate: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(int)\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                              ^\r\ninclude/routingkit/contraction_hierarchy.h:34:30: note:   candidate expects 1 argument, 2 provided\r\nsrc/contraction_hierarchy.cpp:1302:22: note: candidate: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in){\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1302:22: note:   candidate expects 1 argument, 2 provided\r\nsrc/contraction_hierarchy.cpp:1311:22: note: candidate: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in, unsigned long\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1311:22: note:   no known conversion for argument 1 from ‘RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)::<lambda(char*, long long unsigned int)>’ to ‘std::istream& {aka std::basic_istream<char>&}’\r\nsrc/contraction_hierarchy.cpp: In member function ‘void RoutingKit::ContractionHierarchy::write(std::ostream&)’:\r\nsrc/contraction_hierarchy.cpp:1327:2: error: no matching function for call to ‘RoutingKit::ContractionHierarchy::write(RoutingKit::ContractionHierarchy::write(std::ostream&)::<lambda(const char*, long long unsigned int)>)’\r\n  );\r\n  ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:40:7: note: candidate: void RoutingKit::ContractionHierarchy::write(int)\r\n  void write(std::function<void(const char*, unsigned long long)>data_sink);\r\n       ^\r\ninclude/routingkit/contraction_hierarchy.h:40:7: note:   no known conversion for argument 1 from ‘RoutingKit::ContractionHierarchy::write(std::ostream&)::<lambda(const char*, long long unsigned int)>’ to ‘int’\r\nsrc/contraction_hierarchy.cpp:1321:6: note: candidate: void RoutingKit::ContractionHierarchy::write(std::ostream&)\r\n void ContractionHierarchy::write(std::ostream&out){\r\n      ^\r\nsrc/contraction_hierarchy.cpp:1321:6: note:   no known conversion for argument 1 from ‘RoutingKit::ContractionHierarchy::write(std::ostream&)::<lambda(const char*, long long unsigned int)>’ to ‘std::ostream& {aka std::basic_ostream<char>&}’\r\nsrc/contraction_hierarchy.cpp: At global scope:\r\nsrc/contraction_hierarchy.cpp:1369:22: error: prototype for ‘RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::function<void(char*, long long unsigned int)>, long long unsigned int)’ does not match any in class ‘RoutingKit::ContractionHierarchy’\r\n ContractionHierarchy ContractionHierarchy::read(std::function<void(char*, unsi\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1311:22: error: candidates are: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in, unsigned long\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1302:22: error:                 static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in){\r\n                      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:34:30: error:                 static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(int)\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                              ^\r\nsrc/contraction_hierarchy.cpp:1395:22: error: prototype for ‘RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::function<void(char*, long long unsigned int)>)’ does not match any in class ‘RoutingKit::ContractionHierarchy’\r\n ContractionHierarchy ContractionHierarchy::read(std::function<void(char*, unsi\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1311:22: error: candidates are: static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&, long long unsigned int)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in, unsigned long\r\n                      ^\r\nsrc/contraction_hierarchy.cpp:1302:22: error:                 static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(std::istream&)\r\n ContractionHierarchy ContractionHierarchy::read(std::istream&in){\r\n                      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:34:30: error:                 static RoutingKit::ContractionHierarchy RoutingKit::ContractionHierarchy::read(int)\r\n  static ContractionHierarchy read(std::function<void(char*, unsigned long long\r\n                              ^\r\nsrc/contraction_hierarchy.cpp:1401:6: error: prototype for ‘void RoutingKit::ContractionHierarchy::write(std::function<void(const char*, long long unsigned int)>)’ does not match any in class ‘RoutingKit::ContractionHierarchy’\r\n void ContractionHierarchy::write(std::function<void(const char*, unsigned long\r\n      ^\r\nsrc/contraction_hierarchy.cpp:1321:6: error: candidates are: void RoutingKit::ContractionHierarchy::write(std::ostream&)\r\n void ContractionHierarchy::write(std::ostream&out){\r\n      ^\r\nIn file included from src/contraction_hierarchy.cpp:1:0:\r\ninclude/routingkit/contraction_hierarchy.h:40:7: error:                 void RoutingKit::ContractionHierarchy::write(int)\r\n  void write(std::function<void(const char*, unsigned long long)>data_sink);\r\n       ^\r\nsrc/contraction_hierarchy.cpp:17:7: warning: ‘void RoutingKit::{anonymous}::sort_arcs_and_remove_multi_and_loop_arcs(unsigned int, std::vector<unsigned int>&, std::vector<unsigned int>&, std::vector<unsigned int>&, std::vector<unsigned int>&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void sort_arcs_and_remove_multi_and_loop_arcs(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:608:7: warning: ‘void RoutingKit::{anonymous}::build_ch_and_order(RoutingKit::{anonymous}::Graph&, RoutingKit::ContractionHierarchy&, RoutingKit::{anonymous}::ContractionHierarchyExtraInfo&, unsigned int, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void build_ch_and_order(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:754:7: warning: ‘void RoutingKit::{anonymous}::build_ch_given_rank(RoutingKit::{anonymous}::Graph&, RoutingKit::ContractionHierarchy&, RoutingKit::{anonymous}::ContractionHierarchyExtraInfo&, const std::vector<unsigned int>&, unsigned int, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void build_ch_given_rank(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:833:7: warning: ‘void RoutingKit::{anonymous}::make_internal_nodes_and_rank_coincide(RoutingKit::ContractionHierarchy&, RoutingKit::{anonymous}::ContractionHierarchyExtraInfo&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void make_internal_nodes_and_rank_coincide(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:864:7: warning: ‘void RoutingKit::{anonymous}::sort_ch_arcs_and_build_first_out_arrays(RoutingKit::ContractionHierarchy&, RoutingKit::{anonymous}::ContractionHierarchyExtraInfo&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void sort_ch_arcs_and_build_first_out_arrays(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:902:7: warning: ‘void RoutingKit::{anonymous}::optimize_order_for_cache(RoutingKit::ContractionHierarchy&, const RoutingKit::{anonymous}::ContractionHierarchyExtraInfo&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void optimize_order_for_cache(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:973:7: warning: ‘void RoutingKit::{anonymous}::build_unpacking_information(unsigned int, const std::vector<unsigned int>&, const std::vector<unsigned int>&, const std::vector<unsigned int>&, RoutingKit::ContractionHierarchy&, const RoutingKit::{anonymous}::ContractionHierarchyExtraInfo&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void build_unpacking_information(\r\n       ^\r\nsrc/contraction_hierarchy.cpp:1068:7: warning: ‘void RoutingKit::{anonymous}::log_input_graph_statistics(unsigned int, const std::vector<unsigned int>&, const std::vector<unsigned int>&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void log_input_graph_statistics(unsigned node_count, const std::vector<unsign\r\n       ^\r\nsrc/contraction_hierarchy.cpp:1084:7: warning: ‘void RoutingKit::{anonymous}::log_contraction_hierarchy_statistics(const RoutingKit::ContractionHierarchy&, const std::function<void(std::__cxx11::basic_string<char>)>&)’ defined but not used [-Wunused-function]\r\n  void log_contraction_hierarchy_statistics(const ContractionHierarchy&ch, cons\r\n       ^\r\nsrc/contraction_hierarchy.cpp:1341:7: warning: ‘void RoutingKit::{anonymous}::check_header(RoutingKit::{anonymous}::CHFileHeader)’ defined but not used [-Wunused-function]\r\n  void check_header(CHFileHeader header){\r\n       ^\r\nsrc/contraction_hierarchy.cpp:1346:23: warning: ‘RoutingKit::ContractionHierarchy RoutingKit::{anonymous}::finish_read(std::function<void(char*, long long unsigned int)>, RoutingKit::{anonymous}::CHFileHeader)’ defined but not used [-Wunused-function]\r\n  ContractionHierarchy finish_read(std::function<void(char*, unsigned long long\r\n                       ^\r\nMakefile:94: recipe for target 'build/contraction_hierarchy.o' failed\r\nmake: *** [build/contraction_hierarchy.o] Error 1\r\n```\r\n\r\nAny idea what could fix this? @ben-strasser"},"comment":{"url":"https://api.github.com/repos/RoutingKit/RoutingKit/issues/comments/217144104","html_url":"https://github.com/RoutingKit/RoutingKit/issues/1#issuecomment-217144104","issue_url":"https://api.github.com/repos/RoutingKit/RoutingKit/issues/1","id":217144104,"user":{"login":"ben-strasser","id":11960463,"avatar_url":"https://avatars.githubusercontent.com/u/11960463?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-strasser","html_url":"https://github.com/ben-strasser","followers_url":"https://api.github.com/users/ben-strasser/followers","following_url":"https://api.github.com/users/ben-strasser/following{/other_user}","gists_url":"https://api.github.com/users/ben-strasser/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-strasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-strasser/subscriptions","organizations_url":"https://api.github.com/users/ben-strasser/orgs","repos_url":"https://api.github.com/users/ben-strasser/repos","events_url":"https://api.github.com/users/ben-strasser/events{/privacy}","received_events_url":"https://api.github.com/users/ben-strasser/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T12:49:43Z","updated_at":"2016-05-05T12:49:43Z","body":"ok the second error seems to come from a different source. Does running\r\n\r\n```bash\r\ncd src/\r\nrm osmpbfformat.pb.h osmpbfformat.pb.cpp\r\nprotoc --cpp_out=. osmpbfformat.proto\r\nmv osmpbfformat.pb.cc osmpbfformat.pb.cpp\r\n```\r\n\r\nfix the issue?"}}