第三方库的编译
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 所有第三方库编译的时候,需要注意自己项目的runtimelib是用的mt, 还是md, 第三方库也要统一,避免出现error LNK2005重定义错误。 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// zlib1.2.5 http://www.cppblog.com/fwxjj/archive/2010/09/26/127733.html zlib1.2.3 有工程文件,使用方便。 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// SQLITE:自己新建项目,用源码编译。
libcurl: 源码中有工程文件,直接编译。
libcurl+openssl: http://hi.baidu.com/%CC%BF%D6%ED/blog/item/03af5904dce2e97003088149.html openssl debug版本:编译选项加 -Zi,链接选项加上 -debug libcurl工程中添加openssl的头文件和库,添加宏BUILDING_LIBCURL;USE_SSLEAY;USE_OPENSSL
mysql: 到mysql官网下载mysql connector/c++的msi版本, 源码中有工程文件,直接编译
boost_1_49_0: 解压后运行bootstrap,编译bjam 在visual studio命令行boost目录中里输入 bjam --with-system --with-regex --with-date_time --with-thread --with-serialization --toolset=msvc-9.0 这里使用的vc2008,其他版本请自行调整 使用时,包含boost_1_44_0目录,lib在boost_1_44_0stagelib即可 libboost_date_time-vc90-mt-1_49.lib---release libboost_date_time-vc90-mt-gd-1_49.lib--debug
如果用mt版本,则runtime-link=static 转自:http://www.cppblog.com/sunicdavy/archive/2010/09/26/127743.html http://blog.csdn.net/tadican/article/details/4273004
|