Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Random - random_device error LNK2019 ()
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-08 21:32:04


AMDG

Valen wrote:
> Hello there!
>
> Windows XP, Boost 1.38, VC++ 7.1 / Mingw 3.4.2
>
> sample code:
>
> //-----------------------------------------------------
> #include <boost/random/uniform_int.hpp>
> #include <boost/random/variate_generator.hpp>
> #include <boost/nondet_random.hpp>
>
> int main()
> {
>
> boost::random_device m;
> typedef boost::uniform_int<> distribution_type;
> distribution_type generator2(m());
>
> return 0;
> }
> <snip>
>
> MinGW gave same output
>
> I checked the sources and find no implementation of ~random_device and
> etc...
>

The implementation is in libs/random/random_device.cpp
However, it may not work because it is conditioned on:
#if defined(__linux__) || defined (__FreeBSD__)

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