zoukankan      html  css  js  c++  java
  • windows 编译c++库的安装CURL、64位Boost

    1.CURL

    本文使用vs2010

    下载:

    git clone https://github.com/curl/curl.git

    https://github.com/curl/curl

    vs的工具下的命令行:(一定)

    32位:vcvarsall.bat x86

    64:vcvarsall.bat x64

    下一步:执行curl目录下的buildconf.bat,然后cd winbuild

    windows下编译(MT):

    32-debug: nmake /f Makefile.vc mode=static vc=10debug=yes rtlibcfg=static machine=x32 ENABLE_IDN=no

    32-release: nmake /f Makefile.vc mode=static vc=10debug=no rtlibcfg=static machine=x32 ENABLE_IDN=no

    64-debug: nmake /f Makefile.vc mode=static vc=10debug=yes rtlibcfg=static machine=X64 ENABLE_IDN=no

    64-release: nmake /f Makefile.vc mode=static vc=10debug=no rtlibcfg=static machine=X64 ENABLE_IDN=no

    windows下编译(MD):

    32-debug: nmake /f Makefile.vc mode=static vc=10debug=yes machine=x32 ENABLE_IDN=no

    32-release: nmake /f Makefile.vc mode=static vc=10debug=no machine=x32 ENABLE_IDN=no

    64-debug: nmake /f Makefile.vc mode=static vc=10debug=yes machine=X64 ENABLE_IDN=no

    64-release: nmake /f Makefile.vc mode=static vc=10debug=no machine=X64  ENABLE_IDN=no

    重点是一定要加ENABLE_IDN=no,默认是打开的,不加的话编译会出错

    X64不行就换AMD64

    Boost安装64位的

    1.  从boost官网(www.boost.org)下载boost库,已经更新到1.62.0,下载boost_1_62_0.zip并解压到指定的路径(我选择的路径是E:oost)。

    2.  从开始->所有程序->Microsoft Visual Studio 2010,打开Visual Studio Tools的Visual Studio x64 Win64命令提示。

    3.  切换到解压路径E:oostoost_1_62_0下,运行bootstrap.bat,建立编译工具bjam.exe,b2.exe。

    4. b2 --toolset=msvc-10.0 --build-type=complete link=static address-model=64 threading=multi variant=release

  • 相关阅读:
    如何选择硅谷的IT公司
    NSDateFormatter设定日期格式
    内存映射文件
    double 转 int 的精度损失问题
    #ifndef #define 的用法
    How to improve the performance of MB5B
    Vendor Evaluation Questionair弹出空白页
    接受报价后创建合同,却无法弹出相应的合同类型
    SRM税务代码的决定逻辑
    How to improve the performance of MB51
  • 原文地址:https://www.cnblogs.com/adjk/p/9441350.html
Copyright © 2011-2022 走看看