我尝试在 ubuntu 精确 32 上使用 thrift 0.9.0 编译一个 cpp 应用程序:
g++ hello_client.cpp gen-cpp/HelloSvc.cpp -lthrift
但是,这会导致:
In file included from /usr/local/include/thrift/transport/TSocket.h:25:0,
from hello_client.cpp:4:
/usr/local/include/thrift/transport/TTransport.h:34:1: error: 'uint32_t' does not name a type
/usr/local/include/thrift/transport/TTransport.h:107:3: error: 'uint32_t' does not name a type
...