简体   繁体   English

如何为boost.python指定静态python?

[英]How to specify static python for boost.python?

I want to link python to boost statically to use python and boost.python for each DLL-library inside one process independently from other DLL-libraries. 我想链接python以静态地增强功能,以便一个进程内的每个DLL库独立于其他DLL库使用python和boost.python。 Standard configure API doesn't have any options to do such things. 标准配置API没有任何选项可以执行此类操作。

Is there isset way to do it? 有固定的方法吗?

This possibility exists on unix if we use 如果我们使用unix,这种可能性就存在

./configure --disable-shared

for python building. 用于python构建。 As result python is built as static library and boost python links this static library. 结果,python被构建为静态库,而boost python链接了这个静态库。 On Windows system it is needed to download python sources and to change project to static library build manually. 在Windows系统上,需要下载python源并将项目更改为手动构建静态库。 And after that to specify library path to this static library for boost sources. 然后,为该Boost源指定此静态库的库路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM