Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

LevelDB-win编译方案

#输入图片说明

1,git checkout origin/windows

2,打开db/c.cc文件,将第八行位置修改如下

#ifndef WIN32

#include <unistd.h>

#endif

3,修改port/port.h文件

#elif defined(LEVELDB_PLATFORM_WINDOWS)

include "port/port_win.h"

4,修改port/port_win.h文件;将第四行的宏定义给注释掉

#define snprintf _snprintf // 注释掉此句

5,CMakeLists.txt放入levebdb目录下;修改其中boost路径;使用cmake工具;

Comments ( 0 )

Sign in for post a comment

About

LevelDB在win下的cmake跨平台编译方案 spread retract
C++
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more