【问题标题】:Why does the NaCL Crypto Library source code reference header files that aren't in the code?为什么 NaCL Crypto Library 源代码会引用代码中没有的头文件?
【发布时间】:2020-10-14 09:41:21
【问题描述】:

我正在查看 NaCL Crytpo 库的代码,尽管我几乎没有使用 C 和 C++ 的经验。在某些 .cpp 文件中,有对源代码中没有的头文件的引用。例如,在wrapper-box.cpp 中,它有#include "crypto_box.h",但找不到crypto_box.h

为什么会这样?库如何在引用损坏的情况下正常运行?

【问题讨论】:

    标签: c++ nacl-cryptography


    【解决方案1】:

    在进一步阅读文档后,头文件显然在编译过程中根据此页面https://nacl.cr.yp.to/install.html 生成,因为头文件的内容可能会根据编译它的机器的体系结构而有所不同。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-15
      • 2020-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多