【Note2】用keil对工程编译时,工程中已经包含的文件会报错:cannot open source input file usb_conf.h No such file or directory
来源:互联网 发布:趣味数学软件 编辑:程序博客网 时间:2024/06/04 23:28
错误举例:
..\..\Libraries\STM32_USB-FS-Device_Driver\inc\usb_type.h(21): error: #5: cannot open source input file "usb_conf.h": No such file or directory
这是因为没有设置 STM32 固件库的目录, 编译器就默认到 “Keil”根目录下的某某目录找去了。如果现在编译程序,会报错的解决方法:引用固件库文件所在的目录需要在顶层的 “C/C++” 页中进行设置。。。
设置方法:在“Project”窗口中用鼠标左键点击最顶层的文件夹名,再点击右键弹出菜单选择菜单中的 “Options for Target ‘’出现“Options for Target ‘’”窗口。选择顶层的“C/C++”页 ,进入“C/C++”设置
页,在窗口的“Include Paths”旁边STM32F10x 准外设库结构分析的文本框后有一个按钮,点击调出“FolderSetup”窗口。添加含有所需“.h ”文件的目录。
1 0
- 【Note2】用keil对工程编译时,工程中已经包含的文件会报错:cannot open source input file usb_conf.h No such file or directory
- error: #5: cannot open source input file "core_cm4.h": No such file or directory
- KEIL MDK编译报错“error: #5: cannot open source input file "stdarg.h": No”
- 编译工程报错:no such file or directory: 'xxx'?
- VS2008中编译C工程出现无法打开包括文件:“iostream.h”: No such file or directory
- VS2008中编译C工程出现无法打开包括文件:“iostream.h”: No such file or directory
- 编译WINCE应用出现:Cannot open include file: 'ceconfig.h': No such file or directory
- MinGW下编译C++,Cannot open include file: 'sdkddkver.h': No such file or directory的解决
- VC++6.0编译时出现fatal error C1083: Cannot open include file: 'conio.h': No such file or directory解决
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- Cannot open include file: 'vtkPolyDataMapper.h': No such file or directory 之类的解决办法
- vc编程时说“Cannot open include file: 'unistd.h': No such file or directory”
- 初学C++:编译器报错“Cannot open include file: 'iostream.h': No such file or directory”的解决方法
- boost编译之 fatal error C1083: Cannot open source file: 'yyacc.c': No such file or directory
- 拾记-linux-(./文件) 报错 cannot open shared object file: No such file or directory
- caffe编译出现 "libcudart.so.8.0 cannot open shared object file: No such file or directory"的错去
- C语言编译错误 fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
- ksfjldsjflasjsaljla
- JAVA反射机制
- 【第一遍机房收费系统】——整体结构
- 取石子游戏(威佐夫博弈)
- 数据分析方法论
- 【Note2】用keil对工程编译时,工程中已经包含的文件会报错:cannot open source input file usb_conf.h No such file or directory
- Piggy-Bank(完全背包变形)
- 模仿instagram的标题替换滚动的效果
- UvaLive 6441 Horrible Quiz(dp)
- OllyDbg快捷键记录帖
- LeetCode004:BinaryTreePostorderTraversal
- Cocos2dx 3.2的使用及其Android项目移植
- 面试总结
- 保存联系人到系统通讯录