|
Boost Users : |
From: Aaron Windsor (aaron.windsor_at_[hidden])
Date: 2007-11-19 09:06:43
On Nov 19, 2007 7:15 AM, <abhishek.v_at_[hidden]> wrote:
>
> Hi..
> I m able to run transitive_closure on my windows machine
> but the same program gives me the following error on Linux machine
> what can be the reason for this ..
>
<snip>
> /usr/include/boost/graph/depth_first_search.hpp:324: error: no matching
> function for call to âvertices(const std::vector<std::vector<long unsigned
> int, std::allocator<long unsigned int> >, std::allocator<std::vector<long
> unsigned int, std::allocator<long unsigned int> > > >&)â
>
>
> //Pseudo Code on which it is failing
> /...
> Graph TC;
> transitive_closure(Original_graph, TC);
> ...//
>
Hi Abhishek,
>From the error messages you've included, I'm assuming you're using gcc
version 4.1.x or above, and that you're compiling code very similar to
the file libs/graph/test/transitive_closure_test.cpp? If so, try
removing the #include of depth_first_search.hpp at the top of the
file, or at least moving the #include of vector_as_graph.hpp before it
as a workaround.
Regards,
Aaron
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net