我是C ++编码的新手。我正在使用安全应用程序,我需要使用Crypto ++库和我在代码块中开发的代码。但每次我建立我得到以下错误(没有包括所有的错误)。我猜我无法将库与我的代码链接起来。
||=== Build: Debug in CryptoQc (compiler: GNU GCC Compiler) ===|
obj\Debug\src\aes.o||In function `main':|
D:\cryptography\C++ Code\CryptoQc\src\aes.cpp|16|undefined reference to `CryptoPP::OS_GenerateRandomBlock(bool, unsigned char*, unsigned int)'|
D:\cryptography\C++ Code\CryptoQc\src\aes.cpp|21|undefined reference to `CryptoPP::SimpleKeyingInterface::SetKeyWithIV(unsigned char const*, unsigned int, unsigned char const*, unsigned int)'|
D:\cryptography\C++ Code\CryptoQc\src\aes.cpp|27|undefined reference to `CryptoPP::StringSinkTemplate<std::string>::StringSinkTemplate(std::string&)'|
obj\Debug\src\aes.o||In function `ZN8CryptoPP21SimpleKeyingInterfaceD2Ev':|
D:\cryptography\C++ Code\CryptoQc\include\cryptlib.h|602|undefined reference to `vtable for CryptoPP::SimpleKeyingInterface'|
obj\Debug\src\aes.o||In function `ZN8CryptoPP19BlockTransformationD2Ev':|