#Library not found

6 messages · Page 1 of 1 (latest)

late igloo
#

I am using g++ from MinGW to compile my code. When compiling, it returns a undefined reference to a Wincrypt function. In the file, I have #include <Wincrypt.h>. How should i go about solving this problem?

errant axleBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

hushed ginkgo
#

make sure you're linking against advapi32.lib

#

the header gives you the function prototypes, which makes the compiler happy about you using them in your code

#

what's complaining right now though is the linker, because it can't find the definition of those functions you're using

#

with gcc you need to add -ladvapi32 or something but you might also need to provide it along with a library directory, where this lib file is located on your system