91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Thrift 動態庫編譯

發布時間:2020-07-24 15:52:40 來源:網絡 閱讀:898 作者:fengyuzaitu 欄目:軟件技術

進入lib/cpp執行make 編譯libthrift

1)./src/thrift/Thrift.h:48:39: fatal error: boost/utility/enable_if.hpp: No such file or directory
?#include <boost/utility/enable_if.hpp>

解決????yum install boost-devel


2)/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_accept'

/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_shutdown'
/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_get_shutdown'
/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_CTX_ctrl'
/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `X509_NAME_ENTRY_get_data'
/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_get_error'
/opt/thrift-0.9.0/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_CTX_free'
collect2: error: ld returned 1 exit status
make[1]: *** [Benchmark] 錯誤 1
make[1]: 離開目錄“/opt/thrift-0.9.0/lib/cpp/test”

解決????修改編輯/opt/thrift-0.9.0/lib/cpp/test/Makefile文件,鏈接庫-lrt -lpthread 添加 -lssl -lcrtypto


編譯錯誤:語法支持問題

src/generate/t_rb_generator.cc: In member function ‘virtual void t_rb_generator::generate_enum(t_enum*)’:
src/generate/t_rb_generator.cc:359:11: error: operands to ?: have different types ‘bool’ and ‘std::basic_ostream<char>’
???? first ? first = false : f_types_ << ", ";
???? ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/generate/t_rb_generator.cc:369:11: error: operands to ?: have different types ‘bool’ and ‘std::basic_ostream<char>’
???? first ? first = false : f_types_ << ", ";
???? ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:749: thrift-t_rb_generator.o] Error 1
make[3]: Leaving directory '/home/dong/thrift-0.9.0/compiler/cpp'

解決

將??? first ? first = false : f_types_ << ", ";

修改為

??? if(first)
??? {
??????????? first = false :
??? }
??? else
??? {
??????????? f_types_ << ", ";
??? }


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

乃东县| 建瓯市| 寻乌县| 福安市| 兰西县| 遂平县| 前郭尔| 肥城市| 轮台县| 崇州市| 沁源县| 遂昌县| 武隆县| 锡林郭勒盟| 固原市| 肥西县| 庆安县| 仙游县| 庄河市| 南昌市| 朔州市| 金昌市| 天津市| 威远县| 格尔木市| 富裕县| 高邑县| 沈丘县| 泰兴市| 绥滨县| 炉霍县| 庆阳市| 丽水市| 福州市| 定结县| 济阳县| 光山县| 安陆市| 栾川县| 威海市| 祁门县|