
Hi everyone, hope someone could help me... I'm using Boost Libraries 1.34.0 (actually Boost.Random only) in a VS2005 VC++ project. I've read the behaviour of these libraries on this platform at http://tinyurl.com/38pbp2 and all results on machines using this compiler are marked "pass", so it should work... But not for me, and I cannot really find why. Here is the code (more or less), cut'n'pasted from all around the project //begin code #include <boost/random.hpp> //commenting this line is uninfluential #include <boost/random/variate_generator.hpp> #include <boost/random/mersenne_twister.hpp> #include <boost/random/lagged_fibonacci.hpp> #include <boost/random/uniform_int.hpp> #include <boost/random/normal_distribution.hpp> boost::mt19937 Engine_Int; boost::lagged_fibonacci19937 Engine_Double; boost::uniform_int< > Uniform( 0, RAND_MAX ); boost::variate_generator< boost::mt19937&, boost::uniform_int< > > MyRand( Engine_Int, Uniform ); boost::normal_distribution< > Gaussian( 20, sqrt( (double) 20) ); boost::variate_generator< boost::lagged_fibonacci19937&, boost::normal_distribution< > > MyGaussianRand( Engine_Double, Gaussian ); unsigned SeedGenerator( unsigned uSeed ) { Engine_Int.seed( (boost::mt19937::result_type) uSeed ); Engine_Double.seed( uSeed ); return( uSeed ); } int main( ) { //do something... return EXIT_SUCCESS } //end code Does someone have a guess? Thanks a lot Gabriele