On Feb 17, 2006, at 4:28 PM, Olivier Delalleau wrote:
Hello,
I have a problem with the example for Prim's minimum spanning tree that can be found here: http://www.boost.org/libs/graph/example/prim-example.cpp
The problem is that when compiled in 32 bits but run on a 64 bits computer, and modified with different edges and weights, it does not work anymore. The modified version that exhibits this behaviour is here: http://www.iro.umontreal.ca/~delallea/tmp/prim-example-fail.cpp It is a simplified version (I removed some compiler-specific code for MSVC) where I replaced the edges and weights by a real-life example I have to solve.
Unfortunately, I am unable to duplicate the problem here. On our 64-bit Opteron machines (running Linux), I get the same results for 64- and 32-bit binaries. Which version of Boost are you using? What operating system? What version of GCC? Doug