提问人:lemt 提问时间:11/16/2023 最后编辑:Shaidolemt 更新时间:11/17/2023 访问量:17
提升 python 导出类出错
boost python export class got wrong
问:
我使用 b2 构建 boost python,如下所示:
.\b2 variant=debug address-model=64 link=static --debug-configuration
在我家里,我使用 user-config.jam,并像这样更改它:
using python : 3.12
: E:/git_src/lemt_client/3rd/Python-3.12.0/PCbuild/amd64/python_d
: E:/git_src/lemt_client/3rd/Python-3.12.0/Include
: E:/git_src/lemt_client/3rd/Python-3.12.0/PCbuild/amd64
: <python-debugging>on ;
在阶段 lib 中它有: ,我在 vs2022 中链接了它。
但是我用来导出我的类,在链接阶段,错误是:libboost_python312-vc143-mt-gd-x64-1_83.lib
BOOST_PYTHON_MODULE
LNK1104 "python312.lib"
我很困惑,它应该链接 python312_d.lib。 有人能告诉我为什么不呢?
答: 暂无答案
评论