
19 Feb
2010
19 Feb
'10
8 a.m.
Hi, I tried to experiment with boost::random_device (e.g. http://www.boost.org/doc/libs/1_42_0/libs/random/nondet_random_speed.cpp), but failed to link it: randomTest.cpp:36: undefined reference to `boost::random_device::operator()()' randomTest.o: In function `main': randomTest.cpp:57: undefined reference to `boost::random_device::default_token' randomTest.cpp:57: undefined reference to `boost::random_device::random_device(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' randomTest.cpp:63: undefined reference to `boost::random_device::~random_device()' There seems to be a boost_random library missing. I am using Ubuntu-8.04, 64bit with gcc-4.2.4. Thanks and regards, Roland