Unable to open file "Libboost_filesystem-vc140-mt-sgd-1_61.lib"

Source: Internet
Author: User
Tags vc runtime

Issue 1: Unable to open file "Libboost_filesystem-vc140-mt-sgd-1_61.lib". Reference recompile boost

  B2 stage  architecture=x86 address-model=64  link=static runtime-link=static threading=multi Debug Release

Option description

link=static/shared, static or dynamically compiled boost
Runtime-link=static/shared,boost whether you need to rely on the VC runtime, if you want to bring your own VC runtime available shared
Threading=multi/single, whether multithreading is supported
In the case of a VS version, you can b2–toolset=msvc directly
Multiple words need to specify VS version number b2–toolset=msvc-12.0
Generated file name: Libboost_log-vc120-mt-sgd-1_59.lib, where Mt represents multithreading.

Compiling the Python version of Boost library
Run Boostrap.bat generate B2.exe and Bjam.exe file edit Project-config.jam (Anaconda python3.5 for example)

    Import option; 

    Using Msvc; 
    Using Python 
    : 3.5 
    : "C:\\Program Files\\anaconda3"
    : "C:\\Program Files\\anaconda3\\include"
    : "c:\\ Program Files\\anaconda3\\libs "
    ;
    
Generate Debug Version
Bjam--with-python--prefix=d:\boost Stage toolset=msvc-10.0 variant=debug link=shared address-model=64 threading= Multi runtime-link=shared Install
Generate release version
Bjam--with-python--prefix=d:\boost Stage toolset=msvc-10.0 variant=release link=shared address-model=64 threading= Multi runtime-link=shared Install
Generate the DLL according to the official method and change the corresponding file suffix to PYD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.