|
Boost Users : |
Subject: [Boost-users] [Random] random_device and windows - multiply defined symbols
From: Tore Halvorsen (tore.halvorsen_at_[hidden])
Date: 2010-05-31 07:29:19
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;
}
1>libboost_random-vc80-mt-sgd-1_43.lib(random_device.obj) : error
LNK2005: "public: static bool const
boost::random_device::has_fixed_range"
(?has_fixed_range_at_random_device_at_boost@@2_NB) already defined in
main.obj
1>libboost_random-vc80-mt-sgd-1_43.lib(random_device.obj) : error
LNK2005: "public: static unsigned int const
boost::random_device::min_value" (?min_value_at_random_device_at_boost@@2IB)
already defined in main.obj
1>libboost_random-vc80-mt-sgd-1_43.lib(random_device.obj) : error
LNK2005: "public: static unsigned int const
boost::random_device::max_value" (?max_value_at_random_device_at_boost@@2IB)
already defined in main.obj
1>Debug\Win32\random_device.exe : fatal error LNK1169: one or more
multiply defined symbols found
-- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] <demo> 2010 Tore Halvorsen || +052 0553034554
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