Boost logo

Boost Users :

Subject: Re: [Boost-users] [Random] Good Truly-Random Seed
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-04-23 10:15:18


AMDG

Hossein Haeri wrote:
> Dear Steve,
>
>> It looks like mingw defines its own versions of
>> windows.h and wincrypt.h that are missing a
>> few declarations. Try the attached patch against
>> 1.42.
>>
>
> Thank you for the patch. It unfortunately doesn't still completely work. The compile-log can again be found in the P.S. Any other suggestions?
>
> TIA,
> --Hossein
>
> P.S.
>
> D:/Sources/Boost/boost_1_42_0/libs/random/random_device.cpp:34: warning: ignoring #pragma comment
> D:/Sources/Boost/boost_1_42_0/libs/random/random_device.cpp: In constructor `boost::random_device::impl::impl(const std::string&)':
> D:/Sources/Boost/boost_1_42_0/libs/random/random_device.cpp:49: error: `CryptEnumProvidersA' was not declared in this scope
> D:/Sources/Boost/boost_1_42_0/libs/random/random_device.cpp:49: warning: unused variable 'CryptEnumProvidersA'
> D:/Sources/Boost/boost_1_42_0/libs/random/random_device.cpp: In member function `void boost::random_device::impl::error(const std::string&)':
> D:/Sources/Boost/boost_1_42_0/libs/random/random_device.cpp:80: warning: unused variable 'error_code'
>

The patch actually creates libs/random/src/random_device.cpp.
instead of libs/random/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