代码块中的哈希库++库"No such file or directory"错误
"No such file or directory" error for hashlib++ library in CodeBlocks
我正在 CodeBlock 中用 C++ 编写一个项目,我正在尝试使用 hashlib++ 库,我的代码中有这样的代码:
#include <hashlibpp.h>
当我单击"构建并运行"时,在该行代码上出现以下错误:
致命错误:hashlibpp.h:没有这样的文件或目录
我将整个 hashlib++ 库与我的主文件.cpp放在同一个目录中。
我正在按照文档上的说明进行操作 http://hashlib2plus.sourceforge.net/doc/README.TXT.html 但是要么第 3.1 节和第 3.2 节中的说明不起作用,要么我没有正确遵循它们。
我将不胜感激有关我为什么收到此错误的任何见解。
好的,所以我弄清楚了问题所在。根据第 3.1 节,
- 在"管理"选项卡中转到您的项目,然后右键单击您正在处理的项目。如果看不到该部分,请转到"查看>管理器",或按 Shift + F2。
- 右键单击后,选择"添加文件..."只需找到并添加您将使用的 .h 文件即可。之后它应该显示在名为"标题"的文件夹中的"管理"部分中。
- 在代码中键入适当的
#include
行。我下载了整个hashlib2plus文件夹并将其放在我的项目文件夹中,所以我的看起来像#include "hashlib2plus/trunk/src/hashlibpp.h"
希望这能解决将来的任何问题!
相关文章:
- Android NDK clang 编译器错误在 Windows 上显示'No such file or directory'
- 已解决 - C++ 的崇高文本中的"fatal error: opencv: no such file or directory"
- "No such file or directory" C++标头问题
- 我在 #include < bits/stdc++h.> 放置时出错"No such file or directory"
- 叮叮当当。target_include_directories "No such file or directory"
- 从生成文件编译错误:"Unable to open output file" ..."No such file or directory"
- C++编译期间出现"No such file or directory"错误
- 尝试编译 TensorFlow 时出错"/system/bin/linker: No such file or directory"
- 代码块中的哈希库++库"No such file or directory"错误
- 成功使用CMakeLists制作后如何修复"open: No such file or directory"错误(该文件实际上存在)
- QMetaObject::invokeMethod: no such method QTextCursor::MoveO
- 如何在安装了 WSL 的 Visual Studio Code 中修复"g++: error: helloworld.cpp: No such file or directory"?
- 尝试使用生成文件编译程序时"fatal error: boost/regex.hpp: No such file or directory" C++
- SDL 测试程序 - "No such file or directory"
- GDB 列表错误"No such file or directory"
- 我的文件可以编译,但当我尝试运行它时"no such file or directory"
- 无法使用 Qt: "No such file or directory" 打开包含文件
- 如何修复"fatal error: boost/asio.hpp: no such file or directory"?
- ": No such file or directory"执行外壳文件
- QT c++ "Windows.h no such a file or dictionary in main.ccp"