VC2008编译libthrift
来源:互联网 发布:交易软件登录不了 编辑:程序博客网 时间:2024/05/21 15:04
VC2008编译libthrift
(金庆的专栏)
thrift只提供了VC2010的sln文件。
用Project From Existing Code... 创建工程。
将 cpp/src/thrift 加入工程。
在Solution Explorer中,
去除 qt 目录。
添加 boost 包含目录。
添加 src 为包含目录,不然 #include <thrift/Thrift.h> 出错。
VC2008缺少 stdint.h, 创建到thrift/windows目录下,并添加为include目录。
#pragma once
#include <boost/cstdint.hpp>
typedef boost::int8_t int8_t;
...
typedef boost::uint64_t uint64_t;
#define INT8_MIN (-128)
...
#define UINT64_MAX (UINT64_C(18446...))
去除VC2010 thrift.sln中没有的文件,无法编译:
Mutex.cpp, PosixThreadFactory.cpp, Monitor.cpp
TEvhttpClientChannel.cpp TEvhttpServer.cpp
TServer.cpp TNonblockingServer.cpp
TSSLSocket.cpp TSSLServerSocket.cpp
TZlibTransport.cpp
加上宏 HAVE_CONFIG_H, 或者 force include force_inc.h.
windows/tr1/functional中
#include <functional>
改为
#include <boost/tr1/functional.hpp>
- VC2008编译libthrift
- WIN7-x64 VS2008 编译libthrift
- vc2008静态编译qt4
- VC2008 编译 QT4.7
- 使用VC2008编译sqlite
- VC2008下编译OpenSSL
- mangos vc2008编译问题
- boost 1.36 VC2008 编译:
- VC2008编译sqllite
- VC2008编译 配置 PortAudio
- UDT VC2008编译应用
- VC2008编译curl 库
- vc2008编译libjpeg
- OpenCV3.1-vc2008编译
- VC2008编译FFmpeg
- VC2008 编译 Openssl0.9.8K
- 用批处理编译VC2008工程
- VC2008 express编译QT4.5
- (找区间段长)hotel
- 在myEclipse更改工程名
- Android之MediaPlayer
- 前谷歌高管给初入职场新人的14条忠告
- ShellExecute与ShellExecuteEx的用法
- VC2008编译libthrift
- java中常见的一些错误
- Ecmall 商品浏览历史
- Android之多媒体使用——MediaPlayer播放音频
- 第七次C程序上机报告
- posix多线程有感--线程高级编程(线程和fork,exec)
- Android提高第二十一篇之MediaPlayer播放网络视频
- 关于页面隐藏传值
- 程序猿的一些幽默 程序猿段子大全