|
Boost Users : |
Subject: [Boost-users] Boost.Random - random_device error LNK2019 ()
From: Valen (fogbit_at_[hidden])
Date: 2009-04-08 18:59:19
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;
}
//-----------------------------------------------------
VC++ Output:
error LNK2019: unresolved external symbol "public: __thiscall
boost::random_device::~random_device(void)" (??1random_device_at_boost@@QAE_at_XZ)
referenced in function "protected: void __thiscall
CGraphDoc::OnBtnNewnode(void)" (?OnBtnNewnode_at_CGraphDoc@@IAEXXZ)
error LNK2019: unresolved external symbol "public: unsigned int __thiscall
boost::random_device::operator()(void)" (??Rrandom_device_at_boost@@QAEIXZ)
referenced in function "protected: void __thiscall
CGraphDoc::OnBtnNewnode(void)" (?OnBtnNewnode_at_CGraphDoc@@IAEXXZ)
error LNK2019: unresolved external symbol "public: __thiscall
boost::random_device::random_device(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??0random_device_at_boost@@QAE_at_ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
referenced in function "protected: void __thiscall
CGraphDoc::OnBtnNewnode(void)" (?OnBtnNewnode_at_CGraphDoc@@IAEXXZ)
error LNK2001: unresolved external symbol "private: static char const *
const boost::random_device::default_token"
(?default_token_at_random_device_at_boost@@0QBDB)
fatal error LNK1120: 4 unresolved externals
MinGW gave same output
I checked the sources and find no implementation of ~random_device and
etc...
Can anyone help please?
-- View this message in context: http://www.nabble.com/Boost.Random---random_device-error-LNK2019-%28%29-tp22961471p22961471.html Sent from the Boost - Users mailing list archive at Nabble.com.
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