Linking against Boost python 3.6. can't find boost_python instead of boost_python3

后端 未结 3 1872
一生所求
一生所求 2020-12-21 18:27

I have problems linking against boost python.

I am using Visual Studio 2017 and compiled the boost 1_64 package with the following command line:

b2          


        
3条回答
  •  天涯浪人
    2020-12-21 18:45

    You provide

    boost_python3-vc141-mt-gd-1_64.dll
    boost_python3-vc141-mt-gd-1_64.lib
    

    but the error reports missing

    boost_python-vc141-mt-gd-1_64.lib
    

    (spot the difference!)

    So obviously, your IDE (VS) attempts to build a python, not a python3 extension. I don't know VS, but there must be away to change that somewhere somehow.

提交回复
热议问题