首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Boost: bjam如何构造库名称?

Boost: bjam如何构造库名称?
EN

Stack Overflow用户
提问于 2012-01-20 18:53:08
回答 1查看 8.2K关注 0票数 26

我在jam文件中查看了库的名称是如何构造的。示例:libboost_log-mgw46-mt-1_48.dll

我想忽略最后一部分,如何用我构造的名字传递链接器的-o参数。我只有几个版本,在一个大项目中的链接迫使我在项目文件中进行更改,这是很多地方。

我的愿望是得到libboost_log.dll。我刚刚重命名了,但当执行一个程序时,它显示找不到libboost_log-mgw46-mt-1_48.dll文件。

EN

回答 1

Stack Overflow用户

发布于 2012-03-04 06:53:12

Boost Bjam有3种不同的命名定义的布局。引用Jamroot文件中的帮助(我不知道还有更好的在线文档):

代码语言:javascript
复制
#   --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规则生成的。

票数 34
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8940249

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档