Jakob Eriksson
Jakob Eriksson

Reputation: 33

Linking error with mingw32 g++

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.

Upvotes: 1

Views: 765

Answers (1)

dirkgently
dirkgently

Reputation: 111280

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).

Upvotes: 1

Related Questions