Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/161.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 编译Botan 1.10.1:未定义的名称空间_C++_Botan - Fatal编程技术网

C++ 编译Botan 1.10.1:未定义的名称空间

C++ 编译Botan 1.10.1:未定义的名称空间,c++,botan,C++,Botan,刚从Botan 1.4切换到Botan 1.10。配置、制作和安装在我的Mac(OSX10.6)上运行良好。 但是尝试使用lib #include <stdio.h> #include <stdlib.h> #include <bigint.h> int main(void) { puts("!!!Hello World!!!"); Botan::BigInt * otto = new Botan::BigInt(1); dele

刚从Botan 1.4切换到Botan 1.10。配置、制作和安装在我的Mac(OSX10.6)上运行良好。 但是尝试使用lib

#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;
}

是否需要使用特殊的字符串实现?所有库都可用,路径似乎正常(/usr/local/include)。

Botan 1.10不起作用。使用crypt编解码器只需使用Botan 1.8就足够了。这会奏效的

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