Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
graph-tool
graph-tool
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the mailing list at https://graph-tool.skewed.de/mailing
(If unsure, use the mailing list first.)



When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #468

Closed
Open
Opened May 11, 2018 by Edgar@eliberis

Compilation fails with ambiguous call to `vertex()` error

  • [Y] Are you running the latest graph-tool version?
  • [Y] Do you observe the problem with the current git version?
  • [Y] Did you compile graph-tool manually?
  • [N] If you answered yes above, did you use the exact same compiler to build graph-tool, boost-python and Python?

Compiling graph-tool (./configure && make && make install) from the AUR, the latest release on the website, and 'master' branch of git fails with the following compile error:

../../../src/graph/graph_util.hh:193:24: error: call of overloaded ‘vertex(size_t&, const boost::reversed_graph<boost::adj_list<long unsigned int>, const boost::adj_list<long unsigned int>&>&)’ is ambiguous
         auto v = vertex(i, g);
                  ~~~~~~^~~~~~
In file included from ../../../src/graph/graph_filtering.hh:48,
                 from graph_betweenness.cc:18:
../../../src/graph/graph_reverse.hh:172:1: note: candidate: ‘typename boost::graph_traits<G>::vertex_descriptor boost::vertex(typename boost::graph_traits<Graph>::vertices_size_type, const boost::reversed_graph<BidirectionalGraph, GraphRef>&) [with BidirectionalGraph = boost::adj_list<long unsigned int>; GRef = const boost::adj_list<long unsigned int>&; typename boost::graph_traits<G>::vertex_descriptor = long unsigned int; typename boost::graph_traits<Graph>::vertices_size_type = long unsigned int]’
 vertex(const typename graph_traits<BidirectionalGraph>::vertices_size_type v,
 ^~~~~~
../../../src/graph/graph_reverse.hh:279:1: note: candidate: ‘typename boost::graph_traits<boost::reversed_graph<BidirectionalGraph, GraphRef> >::vertex_descriptor boost::vertex(size_t, const boost::reversed_graph<BidirectionalGraph, GraphRef>&) [with BidirectionalGraph = boost::adj_list<long unsigned int>; GRef = const boost::adj_list<long unsigned int>&; typename boost::graph_traits<boost::reversed_graph<BidirectionalGraph, GraphRef> >::vertex_descriptor = long unsigned int; size_t = long unsigned int]’
 vertex(size_t i, const reversed_graph<BidirectionalGraph,GRef>& g)
 ^~~~~~

I'm attaching a file with the full configure and make output (when compiling the git master), as well as config.log.

Environment:

  • OS: Arch Linux latest
  • Python 3.6.5 (default, Apr 14 2018, 13:17:30); [GCC 7.3.1 20180406] on linux
  • Compiler: g++ (GCC) 8.1.0
  • Boost: boost 1.66.0-2; boost-libs 1.66.0-2

output.txt config.log

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: count0/graph-tool#468