Boost logo

Boost Users :

Subject: [Boost-users] [random] Missing Advapi32.lib
From: Juan Carlos Franzoy (jfranzoy_at_[hidden])
Date: 2013-10-15 11:37:43


Hello.

I am relatively new to boost. I am trying to compile boost-1.52 in a
windows server 2008R2 using visual studio 2012 express.

I got an error linking random dll:
random_device.obj : error LNK2019: unresolved external symbol
__imp__CryptAcquireContextA_at_20 referenced in function "public:
__thiscall boost::random::random_device::impl::impl(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0impl_at_random_device_at_random@boost@@QAE_at_ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)

The same error repeats for 'CryptReleaseContext', 'CryptGenRandom' and
'CryptEnumProvidersA'.

The problem does not happend if I add
'<toolset>msvc:<linkflags>advapi32.lib' to the requirements in
random/build/Jamfile.v2.

Anyone has seen this before?

-- 
  Juan Carlos Franzoy
Licenciado en Sistemas

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