我正在尝试从https://github.com/encryptogroup/PSI.git运行代码,当我使用 gcc -c *.cpp 命令生成 .o 文件时,它给了我以下错误:
./crypto/crypto.h:165:2: error: no matching function for call to 'readCodeWords'
readCodeWords(*codewords);
在crypto.h中,相关代码是
static void InitAndReadCodeWord(REGISTER_SIZE*** codewords) {
uint32_t ncodewords = m_nCodeWordBits;
uint32_t ncwintlen = 8;
*codewords = (REGISTER_SIZE**) malloc(sizeof(REGISTER_SIZE*) * ncodewords);
for(uint32_t i = 0; i < ncodewords; i++) {
(*codewords)[i] = (REGISTER_SIZE*) malloc(sizeof(REGISTER_SIZE) * ((ncwintlen * sizeof(uint32_t)) / sizeof(REGISTER_SIZE)));
}
readCodeWords(*codewords);}
readCodeWords() 在 codewords.h 中定义,但我已经将它包含在 crypto.h 中,错误仍然存在。