gpt4 book ai didi

X代码: "Analyzer skipped this file due to parse errors"

转载 作者:行者123 更新时间:2023-12-02 05:19:36 25 4
gpt4 key购买 nike

我的项目包含一个带有 header 的简单 C 文件。像这样:

#ifndef __IMAGE_ARRAY_3D
#define __IMAGE_ARRAY_3D

typedef struct ImageArray3D {
double *data; // The image data
LargeElement *largestElements; // c * nLargestElements
int c, w, h, nLargestElements;
} tImageArray3D; // Error points to here

...

#endif

当我运行 XCode 的静态分析器时,出现以下错误:

Analyzer skipped this file due to parse errors

redefinition of 'ImageArray3D' as different kind of symbol

这是什么原因?

最佳答案

这是问题的解决方案:Solution!

The recommended solution is to add the following to Other C Flags in your project's build settings: -D__IPHONE_OS_VERSION_MIN_REQUIRED=040100 where you replace 040100 with your deployment target version (030000 for 3.0, for example).

关于X代码: "Analyzer skipped this file due to parse errors",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1608946/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com