[BGL] kolmogorov_max_flow: can't compile even the example
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. I don't really know how to look for the problem, I tried compiling also with gSTLfilt (filters STL errors), but couldn't find anything. Any ideas?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. | | I don't really know how to look for the problem, I tried compiling | also with gSTLfilt (filters STL errors), but couldn't find anything. | Any ideas? | | | _______________________________________________ | Boost-users mailing list | Boost-users@lists.boost.org | http://lists.boost.org/mailman/listinfo.cgi/boost-users | Usually I battle this occurrence with g++ yadda-yadda 2>&1 | less and then I use the search function of less (the '/' key) to look for the string "error". Best regards, ~ Francesco. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkh26JYACgkQFCtI0YdDCEs5FgCgp8tyuhRYCRiq9ei1kUql0tli PY4AnjK/BgjU97GJZDcIHVtUxStkMZ2D =53B0 -----END PGP SIGNATURE-----
Hi Niko,
On Fri, Jul 11, 2008 at 6:35 AM, Niko Vuokko
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
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
Stephan Diederich wrote:
On 7/11/08, Niko Vuokko
wrote: I actually got it now compiling, it seems that there are some malformed example sources walking around.
Strange. Where did you get them from?
Stephan
The story is that I first tried compiling my own code that failed. Then I pasted the example code from the documentation, but it gave similar errors. At that point I had all kinds of attempts fail so I wasn't too surprised on the example failing. Later on I then noticed that the actual example file had some extra payload and it compiled ok. So it was kind of my bad.
participants (3)
-
Francesco Biscani
-
Niko Vuokko
-
Stephan Diederich