在mingw中提升没有标记的库名称

时间:2013-10-23 18:43:55

标签: c++ boost

我在windows中编译mingw中的boost库,我希望我的库名没有标记。 例如,boost python只是libboost_python,而不是libboost_python-mgw48-mt-1_54.dll。 我在http://www.boost.org/boost-build2/doc/html/bbv2/overview/builtins/features.html中找到了答案之一。它说

tag

The tag feature is used to customize the name of the generated files. The value should have the form:

@rulename

where rulename should be a name of a rule with the following signature:

rule tag ( name : type ? : property-set )

但我不知道如何使用这些信息。

这是我的编译命令

b2 toolset = gcc variant = release link = shared threading = multi runtime-link = shared --with-python

获取libboost_python-mgw48-mt-1_54.dll。所以我想使用

b2 toolset = gcc variant = release link = shared threading = multi runtime-link = shared tag = @ rule tag(name:type)--with-python

获取libboost_python.dll,但它不起作用

0 个答案:

没有答案