Boost logo

Boost Users :

Subject: Re: [Boost-users] [Random] random_device and windows - multiply defined symbols
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-31 13:00:00


AMDG

Tore Halvorsen wrote:
> The release notes for Boost 1.43 says
> "Put the implementation of random_device in a compiled lib, and added
> Windows support."
>
> Trying to use this library does not seem to work for me, under visual
> studio 2005, with static libraries.
>
> #include <cstdlib>
> #include <boost/nondet_random.hpp>
>
> int main(int argc, char* argv[])
> {
> boost::random_device d;
> return EXIT_SUCCESS;
> }
>

Use a shared library or apply the patch from
https://svn.boost.org/trac/boost/changeset/62347/branches/release/libs/random/src/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