mirror of
https://github.com/boostorg/graph.git
synced 2026-01-22 05:12:33 +00:00
Works fine with c++11, thanks! System: (K)Ubuntu 16.04 LTS Compiler: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Try to 'g++ -c' the four SGB examples girth.cpp, miles_span.cpp, roget_components.cpp, and topo-sort-with-sgb.cpp. (1) SGB 2002-01-30 changed the 'Associated Press scores' from 'ap0' and 'ap1' to 'ap'. This preprocessor macro (sic!) collides with numerous function parameters in 'named_function_params.hpp'. '#undef'ining the macro doesn't break the BGL examples. (2) girth.cpp fails because of a missing 'null_vertex()' function. (3) roget_components.cpp invokes 'strncmp()' from the C library. (4) topo-sort-with-sgb.cpp hickups because of a missing 'vertices()' function. Following roget_components.cpp and putting the collective SGB header up front fixes this.
4.8 KiB
4.8 KiB