Project

General

Profile

Bug #604

Compile Error (WT , BOOST 1.44 , MSVC 2008 ) : error C2491: 'boost::random_device::default_token'

Added by Anonymous almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
-
Start date:
11/15/2010
Due date:
% Done:

0%

Estimated time:

Description

1>random_device.cpp

1>..\..\src\web\random_device.cpp(108) : warning C4273: 'default_token' : inconsistent dll linkage

1> C:\DEV\3rdParty\boost\1_44_0\include\boost/nondet_random.hpp(124) : see previous definition of 'private: static char const * const boost::random_device::default_token'

1>..\..\src\web\random_device.cpp(108) : error C2491: 'boost::random_device::default_token' : definition of dllimport static data member not allowed

1>..\..\src\web\random_device.cpp(146) : warning C4273: 'boost::random_device::random_device' : inconsistent dll linkage

1> C:\DEV\3rdParty\boost\1_44_0\include\boost/nondet_random.hpp(107) : see previous definition of '{ctor}'

1>..\..\src\web\random_device.cpp(152) : warning C4273: 'boost::random_device::~random_device' : inconsistent dll linkage

1> C:\DEV\3rdParty\boost\1_44_0\include\boost/nondet_random.hpp(108) : see previous definition of '{dtor}'

1>..\..\src\web\random_device.cpp(159) : warning C4273: 'boost::random_device::entropy' : inconsistent dll linkage

1> C:\DEV\3rdParty\boost\1_44_0\include\boost/nondet_random.hpp(117) : see previous definition of 'entropy'

1>..\..\src\web\random_device.cpp(164) : warning C4273: 'boost::random_device::operator ()' : inconsistent dll linkage

1> C:\DEV\3rdParty\boost\1_44_0\include\boost/nondet_random.hpp(121) : see previous definition of '()'

#1

Updated by Koen Deforche almost 12 years ago

  • Status changed from New to InProgress
  • Assignee set to Wim Dumon
#2

Updated by Wim Dumon almost 12 years ago

What version of Wt is this?

Does a static build work for you?

Wim.

#3

Updated by Wim Dumon almost 12 years ago

  • Status changed from InProgress to Resolved

A patch is on its way.

This was a problem when building with BOOST_DYNAMIC=ON

#4

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed

Available in 3.1.7

Also available in: Atom PDF