2010-10-16 5 views
0

je tentais de compiler le code suivant (exemple) via C++ Builder 2010:Comment intégrer Crypto ++ dans C++ Builder 2010/[ILINK32 Erreur]

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)

Il n'y avait pas d'erreurs de compilation, mais la mise en relation a échoué:

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

Comment puis-je résoudre ce problème?

Répondre

1

de la même page

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

vous utilisez une version statique ou dll de Crypto ++? – frag

+0

J'utilise la version statique. Je peux compiler cryptest_bds.cbproj sans aucun problème. Mais j'ai eu les erreurs ILINK32 au projet en utilisant le wrapper. Peut-être que je dois changer certains paramètres du projet? mais lequel? –

+0

avez-vous ajouté le répertoire Crypto ++ à vos répertoires d'inclusion et les répertoires lib. (Désolé de poser des questions si triviales) – frag