Thrift 入门

1下载

https://thrift.apache.org/download

Apache Thrift Archive

 

下载编译好的release可执行文件:

Thrift compiler forWindows (thrift-0.9.2.exe)

2安装

thrift-0.9.2.exe改名为thrift.exe放到path环境变量中存在的目录下,如:C:Windows

改名为thrift.exe不是必须的,但是最好这样,因为修改后的名字使用起来输入方便一点。

3运行生成代码

切换到thrift文件所在的目录,执行如下命令

thrift -r --gen cpp tutorial.thrift

原文地址:https://www.cnblogs.com/lpxblog/p/5381676.html