Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Thrift dynamic library compilation

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Go to lib/cpp and execute make to compile libthrift

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

# include

Resolve 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

/ 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] error 1

Make [1]: leave the directory "/ opt/thrift-0.9.0/lib/cpp/test"

Solve the problem of editing / opt/thrift-0.9.0/lib/cpp/test/Makefile file, link library-lrt-lpthread add-lssl-lcrtypto

Compilation errors: syntax support issues

Src/generate/t_rb_generator.cc: In member function 'virtual void t_rb_generator::generate_enum (tweeds *)':

Src/generate/t_rb_generator.cc:359:11: error: operands to?: have different types' bool' and 'std::basic_ostream'

First? First = false: fancitypes_

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report