【问题标题】:Boost compilation does not understand block comment in JAM fileBoost 编译不理解 JAM 文件中的块注释
【发布时间】:2020-04-22 08:52:15
【问题描述】:

我从https://dl.bintray.com/boostorg/release/1_72_0/source编译boost v1.72

Ubuntu 18.04.4 LTS

gcc : 7.5.0

编译错误:

boost_1_72_0/tools/build/src/tools/types/sass-type.jam:8: in load
ERROR: rule "Copyright" unknown in module "sass-type".

我的 sass-type.jam 文件开头为:

#|
Copyright 2017 Dmitry Arkhipov
Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
|#

import scanner ;
import type ;
...

如果我替换块注释#| .. |# 通过注释 # 在每一行上,它编译。 为什么我的 boost 编译无法识别块注释?

谢谢,

【问题讨论】:

  • 嗨@xibi,你找到答案了吗,我也遇到同样的错误?

标签: c++ boost b2 jam


【解决方案1】:

您正在使用系统上安装的过时 b2。完全按照入门指南进行操作:

cd path/to/boost_1_72_0
./bootstrap.sh
./b2 install

【讨论】:

    猜你喜欢
    • 2020-01-10
    • 1970-01-01
    • 2013-12-03
    • 2017-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-29
    • 1970-01-01
    相关资源
    最近更新 更多