我尝试在编译过程中包括一些僵尸头。
#include <botan/rng.h>
#include <botan/auto_rng.h>
#include <botan/cipher_mode.h>
#include <botan/hex.h>
#include <iostream>
int main(int argc, char** argv)
{
return 0;
}我发现为了成功构建,我需要使用以下命令进行编译
g++ app.cpp -I/usr/local/include/botan-2我看到一些人
g++ app.cpp -lbotan-2我试过了,但我犯了个错误
'app.cpp:1:10: fatal error: botan/rng.h: No such file or directory
#include <botan/rng.h>我有遗漏什么吗?
发布于 2020-07-01 07:21:28
以下命令:
g++ app.cpp -lbotan-2使用app.cpp链接botan-2,但仍然需要指定在哪里找到标头:
g++ app.cpp -I/usr/local/include/botan-2 -lbotan-2 在我的系统中,僵尸2的头在/usr/include/botan-2中。所以,确保你的道路是正确的。
https://stackoverflow.com/questions/62671522
复制相似问题