Thanks for the replies, I actually got it now compiling, it seems that there are some malformed example sources walking around. The problem was that some properties required by the function weren't defined for the graph. Is it somehow possible to limit the scope of using namespace declaration to some portion of code, but still be able to use the variables defined in that scope outside it? In other words, is the following idea possible somehow? { using namespace boost; typedef stuff moreStuff; } moreStuff A; Stephan Diederich wrote:
Hi Niko,
On Fri, Jul 11, 2008 at 6:35 AM, Niko Vuokko
wrote: I'm trying to compile the example for kolmogorov_max_flow in Graph library, but it gives me an error (more precisely 1023K worth of errors...). Tried compiling on Cygwin, GCC 3.4.4, g++ -c -I/path/to/boost -O2 example.cpp.
As I don't have cygwin and gcc 3.4.4 around can you please provide some more details? Compiling kolmogorov-eg.cpp with g++ -c -I/usr/include/boost -O2 kolmogorov-eg.cpp works for me here (gcc 4.2.3).
Stephan