Hi Aaron..

You are right i'm using gcc version 4.2.1 and also after including vector_as_graph.hpp the
program is running fine . But what is the reason of including this header file.

Thanks

Abhishek
boost-users-bounces@lists.boost.org wrote on 11/19/2007 07:36:43 PM:

> On Nov 19, 2007 7:15 AM,  <abhishek.v@tcs.com> 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 mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

> ForwardSourceID:NT0004C3C6    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you