windows客户端:

1、首先要安装boost库 下载源文件

2、安装boost之前先要安装python-3.4.0.amd64,很多地方没有说,弄了很久

3、运行bootstrap.bat 生成bjam

4、bjam --toolset=msvc-9.0 --build-type=complete  编译好要30分钟

 

5、下载thrift0.9.1

6、thrift-0.9.1\lib\cpp下的工程要编译生成libthrift.lib 不然没办法用

7、这里用vs2010编译,要在c++常规里面加入boost库的目录(这里debug和relase有区别,最好都编译一下)

 

8、写好自己的c++客户端,用thrift-0.9.1.exe编译文件,生成的gen-cpp源码加入到自己工程里面

9、自己的工程要做点配置

 

C\C++常规配置

\boost\boost_1_47
\thrift-0.9.0\lib\cpp\src
\thrift-0.9.0\lib\cpp\src\thrift

 

链接器常规配置
thrift-0.9.0\lib\cpp\Release
boost_1_47_0\stage\lib

 

10、大功告成,编译应该没问题了

相关文章:

  • 2022-02-03
  • 2022-03-02
  • 2021-07-06
  • 2021-11-15
  • 2021-05-30
  • 2022-12-23
  • 2021-10-28
  • 2021-05-02
猜你喜欢
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-08-11
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案