我在jam文件中查看了库的名称是如何构造的。示例:libboost_log-mgw46-mt-1_48.dll
我想忽略最后一部分,如何用我构造的名字传递链接器的-o参数。我只有几个版本,在一个大项目中的链接迫使我在项目文件中进行更改,这是很多地方。
我的愿望是得到libboost_log.dll。我刚刚重命名了,但当执行一个程序时,它显示找不到libboost_log-mgw46-mt-1_48.dll
文件。
发布于 2012-03-04 06:53:12
Boost Bjam有3种不同的命名定义的布局。引用Jamroot
文件中的帮助(我不知道还有更好的在线文档):
# --layout=<layout> Determines whether to choose library names
# and header locations such that multiple
# versions of Boost or multiple compilers can
# be used on the same system.
#
# versioned - Names of boost binaries
# include the Boost version number, name and
# version of the compiler and encoded build
# properties. Boost headers are installed in a
# subdirectory of <HDRDIR> whose name contains
# the Boost version number.
#
# tagged -- Names of boost binaries include the
# encoded build properties such as variant and
# threading, but do not including compiler name
# and version, or Boost version. This option is
# useful if you build several variants of Boost,
# using the same compiler.
#
# system - Binaries names do not include the
# Boost version number or the name and version
# number of the compiler. Boost headers are
# installed directly into <HDRDIR>. This option
# is intended for system integrators who are
# building distribution packages.
#
# The default value is 'versioned' on Windows, and
# 'system' on Unix.
system
布局给出了您想要的命名方案--不带任何其他信息的纯基名。
根据这些布局的Boost输出文件的名称是使用boostcpp.jam
文件中定义的tag
规则生成的。
https://stackoverflow.com/questions/8940249
复制相似问题