Posted on 2006-08-01 18:58:42-07 by shadowleaves
cannot build boost-graph (without root access)
I got the following output:
../include/BoostGraph_undirected_i.h: In member function `virtual std::vector<int, std::allocator<i +nt> > BoostGraph_undirected_i<G>::connectedComponents()': ../include/BoostGraph_undirected_i.h:59: error: `_changed' was not declared in this scope Boost 1.33.1 has been successfully installed. I do not have the root access, so i specify the directory in the makefile.PL files in both Undirect +ed and Directed folders to be 'INC' => '-I. -I../include -I/xome/dsk1/hyan/bin/include/boost-1_33_1/'
where I installed my boost 1.33.1 libraries. anyone knows how to solve the problem? thank you!
Direct Responses: 2865 | Write a response
Posted on 2006-08-30 04:28:47-07 by lfriedl in response to 2743
Re: cannot build boost-graph (without root access)

I just got that error too. It went away when I made the change below. Not sure if it's a bug in the C++ compiler (different versions?) or what, but I'll post it to the bug tracker.

In the file Boost-Graph-1.2/include/BoostGraph_undirected_i.h, edit line 59 to be:
if (this->_changed!=0) this->_fillGraph();

(i.e., add the "this->").

cheers,
-Lisa

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.