1.vue开发中发现最后越来越多的编译警告,如 warning: Replace `↹↹` with `··` (prettier/prettier) at src/views/shebei/shouye.vue:554:1: 最终排查得出结论,是编写代码,空格问题,(代码和编辑器左边有空格导致),css html 都会导致,必须确保左边空额不能有 截图如下: 正确的编码样式: 编译控制台报错警告信息
1.一定要将public QObject放在public QGraphicsItem的前面,并且在该类的定义中添加Q_OBJECT宏. class XXGraphicsItem : public QObject, public QGraphicsItem 编译时出现警告 Warning: Class Node implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to Q
There are multiple modules with names that only differ in casing.有多个模块同名仅大小写不同This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.这可能导致在一些文件系统中产生不是预期的行为Use equal casing. 使用唯一的写法 提示原因: import Pagination from '.
main.c(32): warning: #1-D: last line of file ends without a newline 这个是由于在main函数的“}”后,没有加回车. 只要在main函数的“}”后加回车键,此警告信息即可消除. C4056E type of input file 'xxx' unknown 经排查这个错误是MDK不支持路径名中带空格引起的,具体是Include文件夹中带了空格的路径 改过名字后就可以编译了 用ST-LINK调试下载:klie5设置
背景: 在使用VUE添加标签的时候编译报错,报错如下: Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead. 代码如下: <template> <el-form ref="form" :model="form" label-
1.error: macro names must be identifiers YourProject_prefix.pch 原因: 因为你弄脏了预处理器宏,在它处于<Multiple Values>的时候修改了它 解决方法: Configiration选择All Configirations,清空它 然后分别重新定义你的Debug,Release,Distributin预处理器宏吧 2.warning: no rule to process file '$(PROJECT_DIR)/Loa
1.Method definition for 'xxx' not found xxx的方法没有实现 出现原因.h声明了xxx方法但是.m没有实现xxx方法 解决方法:在类的.m文件实现xxx方法 2. Instance variable ‘xxx' accessed in class method 在类方法中访问了'xxx’实例变量 出现原因:在类方法中使用了实例变量 解决方法:如果真得需要在类方法中使用某个变量,可以把这个变量定义成全局变量,而不要实例变量,如在类方法外面定义变量(就