[Random] random_device not available for linking?
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
AMDG Roland Bock wrote:
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
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.
There's a trac ticket for this. In the interim, the implementation is in libs/random/random_device.cpp. In Christ, Steven Watanabe
participants (2)
-
Roland Bock
-
Steven Watanabe