# LevelDB-win编译方案 **Repository Path**: cn0512/Teaf ## Basic Information - **Project Name**: LevelDB-win编译方案 - **Description**: LevelDB在win下的cmake跨平台编译方案 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 3 - **Created**: 2016-09-26 - **Last Updated**: 2021-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LevelDB-win编译方案 #![输入图片说明](https://gitee.com/uploads/images/2017/1213/211714_5aad0487_3843.png "ocquant.png") >1,git checkout origin/windows >2,打开db/c.cc文件,将第八行位置修改如下 >> #ifndef WIN32 >> #include >> #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工具; >