|
Boost Users : |
Subject: Re: [Boost-users] [Random] random_device not available for linking?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-19 10:39:23
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<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.
There's a trac ticket for this. In the interim, the implementation
is in libs/random/random_device.cpp.
In Christ,
Steven Watanabe
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