编译器报错整理
JohnnyTim
没有去干怎么知道不行!!!
展开
-
关于 cannot open source input file “ ... “ No such file or directory 相关报错解决方式
首先还是要看报错的信息内容。比如:“ no source”:Error: #5: cannot open source input file " ..\..\..\Utilities\STM32_EVAL\Common\stm32_eval_spi_flash.c":No such file or directory.详细如下所示: ...原创 2021-01-07 20:01:39 · 38558 阅读 · 3 评论 -
关于“ error: two or more types in declaration o f `type name‘ ”报错的注解
最近做程序移植的时候遇到一个报错,困惑了挺久的。报错为:“error: two or more types in declaration of `type name' ”,如下图所示:解决办法:就是修改port这个参数变量就可以了。例如修改为:“rtk_port_t port_t”即可。原因是port 在XC语言中是一个关键字,关键字是不可以做变量的,编译器把port当成关键字了,所以才会报有两个类型。其中rtk_port_t是一个结构体类型,把它当成一个类型就行,我就不做过多解释了。遇到..原创 2020-07-01 18:48:02 · 1557 阅读 · 0 评论