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


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 &)"

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

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

Anyone has seen this before?

  Juan Carlos Franzoy
Licenciado en Sistemas

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at