Boost logo

Boost Users :

Subject: [Boost-users] run time error for min_max_paths.cpp of Graph Library 1.46.1 on Fedora 12
From: albert kao (albertkao3_at_[hidden])
Date: 2011-04-13 19:34:28

I compiled the min_max_paths.cpp in the example directory of BGL 1.46.1 on
Fedora 12.
$ g++ -I ~/boost_1_46_1 min_max_paths.cpp -o min_max_paths \

Please help to solve the following run time error.
$ min_max_paths
terminate called after throwing an instance of

  what(): The graph may not contain an edge with negative weight.

Aborted (core dumped)

My configuration is as follows:

$ uname -a

Linux triplecore #1 SMP Sat Nov 7 21:41:45 EST 2009
i686 athlon i386 GNU/Linux

$ g++ -v
Using built-in specs.
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch=i686
Thread model: posix
gcc version 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC)

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at