[專案] -> [屬性] -> [C/C++] -> [一般] -> [其他Include目錄] -> [Add "include" folder which is inside the donwloaded pre-built libgcrypt]
[專案] -> [屬性] -> [連結器] -> [一般] -> [其他程式庫目錄] -> [Add path to folder that contains the library according to dynamic/static and Win32/x64]
[專案] -> [屬性] -> [連結器] -> [輸入] -> [其他相依性] -> [Add gcrypt.lib]
- Copy
gcrypt.dll
from pre-built libgcrypt to the project folder
[專案] -> [屬性] -> [連結器] -> [輸入] -> [其他相依性] -> [Add libgcrypt.lib]
[專案] -> [屬性] -> [C/C++] -> [程式碼產生] -> [執行階段程式庫] -> [/MDd]
- The output executable file is still standalone (Can be runned on other Windows PC)
#include <gcrypt.h>
#include <gpg-error.h>
I've included some common cryptography algorithm examples using libgcrypt libraries' high level API. Check out symmetric block cipher template to write your own symmetric cryptography program with minor modification.
- Thanks for the pre-built libraries from Shift Media Project