作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
刚刚从 Botan 1.4 切换到 Botan 1.10。配置、制作和安装在我的 Mac (OSX10.6) 上运行良好。但是尝试使用库
#include <stdio.h>
#include <stdlib.h>
#include <bigint.h>
int main(void) {
puts("!!!Hello World!!!");
Botan::BigInt * otto = new Botan::BigInt(1);
delete otto;
return EXIT_SUCCESS;
}
导致构建错误:
g++ -O2 -g -Wall -fmessage-length=0 -I/usr/local/include/botan -c -o BotanTest.o
BotanTest.cpp
In file included from /usr/include/c++/4.2.1/cwchar:52,
from /usr/include/c++/4.2.1/bits/postypes.h:46,
from /usr/include/c++/4.2.1/iosfwd:49,
from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,
from /usr/include/c++/4.2.1/bits/char_traits.h:46,
from /usr/include/c++/4.2.1/string:47,
from /usr/local/include/botan/allocate.h:12,
from /usr/local/include/botan/secmem.h:11,
from /usr/local/include/botan/buf_comp.h:11,
from /usr/local/include/botan/entropy_src.h:11,
from /usr/local/include/botan/rng.h:11,
from /usr/local/include/botan/bigint.h:12,
from BotanTest.cpp:11:
/usr/include/c++/4.2.1/ctime:66: error: '::clock_t' has not been declared
/usr/include/c++/4.2.1/ctime:68: error: '::tm' has not been declared
/usr/include/c++/4.2.1/ctime:70: error: '::clock' has not been declared
/usr/include/c++/4.2.1/ctime:71: error: '::difftime' has not been declared
/usr/include/c++/4.2.1/ctime:72: error: '::mktime' has not been declared
/usr/include/c++/4.2.1/ctime:73: error: '::time' has not been declared
/usr/include/c++/4.2.1/ctime:74: error: '::asctime' has not been declared
/usr/include/c++/4.2.1/ctime:75: error: '::ctime' has not been declared
/usr/include/c++/4.2.1/ctime:76: error: '::gmtime' has not been declared
/usr/include/c++/4.2.1/ctime:77: error: '::localtime' has not been declared
/usr/include/c++/4.2.1/ctime:78: error: '::strftime' has not been declared
是否需要使用特殊的字符串实现?所有库都可用,路径似乎没问题 (/usr/local/include)。
最佳答案
Botan 1.10 无法运行。使用crypt codec需要Botan 1.8就够了。这会起作用。
关于c++ - 编译牡丹1.10.1 : undefined namespaces,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9888906/
首先我创建了我的歌键:(外壳/Debian 9) >openssl genrsa -out ./priv.rsa 2048 >openssl pkcs8 -topk8 -inform PEM -out
我目前有一些代码可以与 LibTomCrypt 库一起正常工作,但不能与 Botan 一起使用(我正在尝试将其转换为 Botan)。 我的(工作中的)LibTomCrypt 代码: // re
我是一名优秀的程序员,十分优秀!