gpt4 book ai didi

python - Boost Python,Visual Studio 链接到错误的 boost dll

转载 作者:太空宇宙 更新时间:2023-11-04 13:21:58 24 4
gpt4 key购买 nike

我使用了 dependency walker,发现 VS 没有链接到 boost_python3_...,而是链接到 boost_python_...。我删除了非 3 版本,但现在链接器提示找不到 boost_python-vc140-mt-1_60.lib。我必须做什么才能链接到 Python 3 boost 库?还是非 3 版本也用于 python 3?

最佳答案

我遇到了同样的问题,这些选项对我来说效果很好:

  1. 转到 boost/python/detail/config.hpp 并将 BOOST_LIB_NAMe 更改为 boost_python3 而不是 boost_python。

  2. 通过定义 BOOST_ALL_NO_LIB 打开自动链接,然后将 boost_python3...lib 显式设置为链接器依赖项。

关于python - Boost Python,Visual Studio 链接到错误的 boost dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34945959/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com