• 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

  • 相关阅读:
    【中位数 均分纸牌】 糖果传递
    【模板】 均分纸牌
    【离散化】 电影
    【离散化】 区间和
    【最大子矩阵】 城市游戏
    vue中如何引入Element-ui
    详细教你:如何搭建vue环境和创建一个新的vue项目
    vue中如何引入bootstrap
    十天冲刺(4)
    十天冲刺(3)
  • 原文地址:https://www.cnblogs.com/adjk/p/9441350.html
Copyright © 2020-2023  润新知