将头文件添加到 LPCXPsPresso 时出现'app_usbd_cfg.h: No such file or directory'错误
'app_usbd_cfg.h: No such file or directory' error when adding header files to lpcxpresso
我正试图在LPCOPEN示例项目的基础上,用lpc11u68 MCU为USB HID应用程序创建一个新项目。
问题是,编译器无法识别其他文件夹上的头文件。它显示了这个
error:../Main/src/Main.cpp:12:26: fatal error: app_usbd_cfg.h: No such file or directory
我已经完全完成了本教程中的所有说明,但问题仍然存在。当我将所有标头和源代码复制到项目的主目录时,它编译正确!
我使用快速设置->include路径将我的头的路径引入Xpresso。这就像上面教程中描述的指令一样,但只适用于C项目!
当您在C++项目中使用该快捷方式时,它会将路径添加到C编译器Includes而不是C++!多么有趣的虫子!
相关文章:
- "error: no matching function for call to"构造函数错误
- 调用专用模板时出错"no matching function for call to [...]"
- c++20[[no.unique_address]]中的新功能是什么
- 以线程安全的方式调用"QQuickPaintedItem::updateImage(const QImage&image)"(no QThread)
- "no matching function for call to 'Vector::Vector'"错误
- Android NDK clang 编译器错误在 Windows 上显示'No such file or directory'
- 处理"no operator found"
- 我在 ifstream input_file(文件名)行中收到错误"no matching function to call";
- 如何解决"no Qt platform plugin could be initialized"问题?
- "Unable to start debugging. No process is associated with this object." - 在Visual Studio Code中使用GDB
- 为什么当我在 std::string 中打开文件名的 fstream 时出现"no matching function"错误?
- 已解决 - C++ 的崇高文本中的"fatal error: opencv: no such file or directory"
- do while 循环中的 if 语句以 yes 或 no 结尾
- 从 TVector2 类派生复杂类:"No matching function for call to Complex::Complex()"
- 错误消息:使用"string* +="后"no match for 'operator+='"
- Eulers 项目问题 no 345 听不懂几行代码
- "No-Const Pointer to Const "调用功能
- 如何在 c++ 中将 s1 和 s2 与 no if 语句进行比较
- "No such file or directory" C++标头问题
- 在 Eclipse: "error: no match for 'operator='" 中获取错误消息