Question

Why do I get:

undefined reference to `CryptAcquireContext(unsigned int**, char const*, char const*, unsigned long, unsigned long)@20'

I am using the Mingw32 compiler suite.

Was it helpful?

Solution

Some code is surely in order here. Otherwise, the only thing we can surmise is that the linker is unable to find a suitable definition of the CryptAcquireContext function (which may be due to a missing reference to the Advapi32.lib file).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top