Chaiscript #include biicode.conf 中的语句映射
Chaiscript #include statement mapping in biicode.conf
我想创建一个依赖于 chaiscript 块(lefticus/ChaiScript)的 biicode 块。如果我以这种方式包含 chaiscript 标头
#include <lefticus/ChaiScript/chaiscript/chaiscript.hpp>
bii find
工作正常。但我想将它们包括在内
#include <chaiscript/chaiscript.hpp>
所以我改变了我的biicode.conf
,比如这样:
[includes]
chaiscript/*.hpp: lefticus/ChaiScript
但后来我得到了
florian@florian-VirtualBox:~/dev/ATE$ bii find
INFO: Processing changes...
WARN: There are local unresolved dependencies
They will not be searched in the server
Unresolved: chaiscript/chaiscript.hpp, chaiscript/chaiscript_stdlib.hpp
INFO: Finding missing dependencies in server
INFO: Looking for chaiscript/utility...
WARN: Can't find block candidate for: chaiscript/utility
INFO: Looking for chaiscript/dispatchkit...
WARN: Can't find block candidate for: chaiscript/dispatchkit
INFO: No block candidates found
我必须如何配置 biicode 以使其与"经典"chaiscript 包含一起使用?
谢谢
你做得很好,但你也需要写下要求:
[requirements]
lefticus/ChaiScript: 1
[includes]
chaiscript/*.hpp: lefticus/ChaiScript
这样,您可以将包含保留为:
#include "chaiscript/chaiscript.hpp"
PD:这是必要的,因为"bii find"还不适用于这样的包含映射。
我终于找到了解决方案。仅当依赖项已存在时,biicode.conf
文件中的[includes]
标记才有效。我不得不修改我的代码以包含具有块完整路径的文件:
#include <lefticus/ChaiScript/chaiscript/chaiscript.hpp>
并在调整biicode.conf
文件之前启动bii deps
。
相关文章:
- 删除一个线程上有数百万个字符串的大型哈希映射会影响另一个线程的性能
- C++映射:具有自定义类的运算符[]不起作用(总是返回0)
- 将函数类成员映射到类本身内部
- 如何在 C# 中映射双 C 结构指针?
- 如何在C++中使用结构生成映射
- 使用std::函数映射对象方法
- 如何加载(或映射)文件部分的最大大小,但适合在Windows上的RAM
- C++映射分割错误(核心转储)
- 内联映射初始化的动态atexit析构函数崩溃
- 使用"std::unordereded_map"映射到"std::list"对象
- 我的简单if-else语句是如何无法访问的代码
- 有一个打印语句的函数是一种糟糕的编程实践吗
- 如何从多映射中删除特定的重复项
- 如何从映射中获取值并在 C++ 的 switch 语句中使用它
- Chaiscript #include biicode.conf 中的语句映射
- C/C++ 案例语句的 Vim 映射
- C++-映射迭代器中的if语句导致程序崩溃的原因
- #include Biicode (biicode.conf) 中的语句映射
- 更快地创建指针映射或if语句
- 2D 数组映射与 if 语句 C++