gpt4 book ai didi

c++ - fatal error : botan/botan. h:没有那个文件或目录

转载 作者:太空宇宙 更新时间:2023-11-04 11:22:10 27 4
gpt4 key购买 nike

我从 this answer 那里得到了很好的建议, 检查 the file list for libbotan1.10-dev 并找到/usr/lib/libbotan-1.10.a ,所以我使用了链接器标志 -lbotan-1.10 .

我已经成功地编写和编译了 websocket++、json-spirit、connector/c++ 和 boost::lockfree::spsc_queue .

我现在正在尝试使用 botan 的 passhash9 来散列密码。

当我尝试编译时

g++  -Ofast -march=native -o btServer broadcast_server_tls.cpp 
-I ~/websocketpp-master/ -std=c++0x -D_WEBSOCKETPP_CPP11_STL_
-D_WEBSOCKETPP_NO_CPP11_REGEX_ -lboost_regex -lboost_system
-pthread -L/usr/lib -lssl -lcrypto -ljson_spirit -lmysqlcppconn -lbotan-1.10

g++ 在 #include <botan/botan.h> 上给出错误行,说“broadcast_server_tls.cpp:12:25: fatal error: botan/botan.h: No such file or directory”。

为了在 Ubuntu 12.10 上安装,我做了 apt-get install libbotan1.10-dev .

我该如何纠正这个问题?

最佳答案

你应该编译为:

g++ "whatever_source_file""无论你已经在使用什么标志"-I/usr/include/botan-1.10/

关于c++ - fatal error : botan/botan. h:没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17517988/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com