
20 Jul
2004
20 Jul
'04
11:20 p.m.
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; }