北风吹南国 发表于 2017-11-7 08:56:53

\stm32_eval.h(169): error: #35: #error directive: "Plea...

..\User\STM32_EVAL\stm32_eval.h(169): error:#35: #error directive: "Please select first the STM32 EVAL board to be used (in stm32_eval.h)"用的是keilu4 和f103c8t6
复制 lib v3.5新建工程时,参考http://blog.csdn.net/zeroice7/article/details/59483155

编译出错.\User\main.c(23): error:#5: cannot open source input file "stm32_eval.h": No such file or direct
然后把lib v3.5下的F:\STM32F10x_StdPeriph_Lib_V3.5.0\Utilities \STM32_EVAL文件夹复制到新建工程的 user 下
然后在 include paths 下也添加了..\User\STM32_EVAL 然后报错

发表于 2017-11-7 10:44:31

第一个是没有定义板子类型导致
第二个应该是头文件引用路径没有加上,在工程设置 C/C++选项,include paths中添加。

MrJiu 发表于 2017-11-7 11:24:53

没有加路径。。。。。百度一下keil使用教程吧!!!按照教程一步一步走一次,就啥都会啦!!!

北风吹南国 发表于 2018-2-26 08:58:18

谢谢,已解决
页: [1]
查看完整版本: \stm32_eval.h(169): error: #35: #error directive: "Plea...