Build errors on Scientific Linux 6.4
There are two different build errors in 2.2.26 when building graph-tool on Scientific Linux 6.4 (and presumably Redhat and CentOS).
-
the SL cairomm package installs the file cairommconfig.h in the same subdirectory as context.h and surface.h, which causes the include in src/graph/draw/graph_cairo_draw.cc:35 to fail.
-
In three separate places g++ complains about the use of typename outside a template.
e.g. graph_subgraph_isomorphism.cc:212: error: using 'typename' outside of template graph_subgraph_isomorphism.cc:215: error: using 'typename' outside of template graph_python_interface.cc:265: error: using 'typename' outside of template
I'm not a c++ expert, but a quick googling makes it seem that this usage is only available in c++0x. Removing 'typename' from each of these cases allowed the code to compile, but I can't be sure correctly.