1.ERROR Unresolved dependencies
原因1:在build.gn中c文件名错误或者资源名错误
原因2:编译器不支持导致
2.ERROR: unused variable ‘ret’ [-Werror=unused-variable]
当我们有未使用但定义的变量或者函数时,便会报错
我们可以采用下面的方式可以关闭或视为忽略此种错误,如果单写其中一行还会报错,只不过错误变了。
cflags=["-Wno-unused-variable"]
cflags +=["-Wno-unused-but-set-variable"]
cflags +=["-Wno-unused-parameter"]