3

当我使用选项编译源文件时:

-lbotan-2

这意味着使用共享库,没有任何问题。

但是在我切换到选项之后:

-l:libbotan-2.a

这意味着使用静态库,会发生错误:

//usr/local/lib/libbotan-2.a(pubkey_rsa.o): In function std::future<std::result_of<Botan::Fixed_Exponent_Power_Mod const& (Botan::BigInt const&)>::type> std::async<Botan::Fixed_Exponent_Power_Mod const&, Botan::BigInt const&>(std::launch, Botan::Fixed_Exponent_Power_Mod const&, Botan::BigInt const&)': rsa.cpp:(.text._ZSt5asyncIRKN5Botan24Fixed_Exponent_Power_ModEJRKNS0_6BigIntEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEESt6launchOS9_DpOSA_[_ZSt5asyncIRKN5Botan24Fixed_Exponent_Power_ModEJRKNS0_6BigIntEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEESt6launchOS9_DpOSA_]+0x379): undefined reference topthread_create' collect2: error: ld returned 1 exit status

我在 Ubuntu 16.04 下使用 Botan 2.1.0 和 c++11。

任何想法出了什么问题?

提前致谢。

4

0 回答 0