小编use*_*464的帖子

未定义的引用CryptoPP :: AlignedAllocate(unsigned int)

我在c ++ linux中使用crypto ++.这是我的简单代码:

#include <iostream>
#include <fstream>
#include <string.h>

#include "crypto++/cryptlib.h"
#include "crypto++/modes.h"
#include "crypto++/filters.h"
#include "crypto++/aes.h"
#include "crypto++/osrng.h"
#include "crypto++/strciphr.h"

using namespace std;
using namespace CryptoPP;

ifstream::pos_type size;
char * memblock;
int length;
char * _iv[AES::BLOCKSIZE];
char * keys[AES::MAX_KEYLENGTH];


void encriptCTR(byte * outbyte, const byte * inbyte, const byte * key, const byte * iv);

void encriptCTR(byte * outbyte, const byte * inbyte, const byte * key, const byte * iv)
{
    size_t inbyte_len = strlen((const char *)inbyte); …
Run Code Online (Sandbox Code Playgroud)

c++ undefined-reference crypto++

8
推荐指数
2
解决办法
7025
查看次数

标签 统计

c++ ×1

crypto++ ×1

undefined-reference ×1