Using Crypt32 with Dev-Cpp - Unable to link to CryptUnprotectData

Posted by jgworks on Stack Overflow See other posts from Stack Overflow or by jgworks
Published on 2010-04-06T08:41:21Z Indexed on 2010/04/06 8:43 UTC
Read the original article Hit count: 293

Filed under:
|

While trying to compile the example code from 'Example C Program: Using CryptProtectData' I ran into a roadblock; The linker cannot find CryptUnprotectData.

Here is the console output:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\test\Makefile.win"
Executing  make...
make.exe -f "C:\Dev-Cpp\test\Makefile.win" all
gcc.exe main.o  -o "Project1.exe" -L"C:/Dev-Cpp/lib" -l crypt32  

main.o(.text+0xcb):main.c: undefined reference to `CryptProtectData'
main.o(.text+0x121):main.c: undefined reference to `CryptUnprotectData'
collect2: ld returned 1 exit status

make.exe: *** [Project1.exe] Error 1

Execution terminated

© Stack Overflow or respective owner

Related posts about c

    Related posts about crypt32