Building Boost BCP

后端 未结 4 1919
长情又很酷
长情又很酷 2020-12-12 20:49

I was trying to build Boost C++ Libraries for last two hours and stopped without any result. Since I am new to C++, I am unable to get the build right. How can I build it co

4条回答
  •  借酒劲吻你
    2020-12-12 21:02

    I extracted the source: https://github.com/district10/cmake-bcp (You don't need to configure BOOST, cause all source code are included already).

    On Linux, cmake + make to build:

    # cd source_dir
    mkdir build && cd build
    cmake ..
    make
    

    On Windows: CMake-GUI + Visual Studio to build. Need help? See HOWTO: Win + CMake + Visual Studio 2010.

    My executables:

    • Windows: http://whudoc.qiniudn.com/2016/bcp_standalone.exe (561 KB)
    • Linux: http://whudoc.qiniudn.com/2016/bcp_standalone_linux (917 KB)
    • macOS: https://github.com/district10/cmake-bcp/releases/download/1.0/macOS_bcp (801 KB)

    Tip: If you come across linking problems on Windows when using Boost, go check the boost/config/auto_link.hpp and you'll understand. To resolve this, you can just comment out the whole file.

提交回复
热议问题