2010-10-16 26 views
0

我試圖編譯通過C++生成以下(實施例)碼2010:如何整合加密++成C++生成器2010/[ILINK32錯誤]

http://swarmapps.wordpress.com/2009/11/24/a-simplification-wrapper-for-the-crypto-library/

http://pastebin.com/f6bd13d59/example.cpp)

http://pastebin.com/f2fc53f83/BasicCryptoPPWrap.h)

有沒有編譯器錯誤,但連接失敗:

[ILINK32 Error] Error: Unresolved external 'CryptoPP::SimpleKeyingInterface::SetKey(const unsigned char *, unsigned int, CryptoPP::NameValuePairs&)' referenced from E:\TEST\DEBUG\FILE1.OBJ

我該如何解決這個問題?

回答

1

在同一頁面

The wrapper is not a standalone solution. It requires your code to link to libcryptopp and know where the cryptopp header files are found. The Crypto++ website can help you set up your system. Once you get the validation suite to run successfully, you will be able to use this wrapper.

+0

您使用加密的++靜態或DLL版本? – frag 2010-10-16 07:37:45

+0

我正在使用靜態版本。我可以編譯cryptest_bds.cbproj而沒有任何問題。但是我在使用包裝器的項目中遇到了ILINK32錯誤。也許我必須改變一些項目設置?但是哪個? – 2010-10-16 07:49:34

+0

您是否已將Crypto ++目錄添加到包含目錄和lib目錄中。 (對不起,問這麼微不足道的問題) – frag 2010-10-16 07:55:51