[random] Building the random libraries

Boost version 1.31.00, g++ 3.3, RedHat 9. When I build everything: # bjam -sTOOLS=gcc -builddir=./BUILD -stagedir=./STAGE stage I do not get the random library built. Worse, when I go to libs/random, there is no src directory and no build directory. Is there an easy way to get Boost.Random built like all the other boost libs? Thanks!

On Tuesday 20 July 2004 4:45 pm, Jody Hagins wrote:
Boost version 1.31.00, g++ 3.3, RedHat 9.
When I build everything: # bjam -sTOOLS=gcc -builddir=./BUILD -stagedir=./STAGE stage I do not get the random library built. Worse, when I go to libs/random, there is no src directory and no build directory. Is there an easy way to get Boost.Random built like all the other boost libs?
You don't need to build the Random library; just include the headers. Doug

On Tue, 20 Jul 2004 16:47:34 -0500 Doug Gregor <dgregor@cs.indiana.edu> wrote:
You don't need to build the Random library; just include the headers.
I wish that were the case. This simple program compiles, but does not link, because the implementation is not in the header (it looks like the implementation is in a .cpp file in the libs/random directory). #include <iostream> #include <boost/nondet_random.hpp> int main(int, char *[]) { boost::random_device rng; std::cout << "Random number is " << rng() << std::endl; return 0; }
participants (2)
-
Doug Gregor
-
Jody Hagins