Boost logo

Boost Users :

Subject: [Boost-users] [Random] random_device not available for linking?
From: Roland Bock (rbock_at_[hidden])
Date: 2010-02-19 03:00:07


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net