c++ - 无法解析 header 中定义的 Eclipse C++ 函数

标签 c++ eclipse

我正在尝试编译一个 C++ 程序,但是我遇到了错误

Function 'Argument' could not be resolved ...... Semantic Error

但是 Argument 是在我包含在项目中的 app.h 中定义的。

我通过转到 Project > Properties > C/C++ General > Paths and Symbols > Includes 包含了头文件。在 GNU C++ 下单击 Add,然后单击 File System 并输入文件路径。

我不明白为什么会出现此错误。

给我错误的行是:

ARGUMENTS = {
  Argument ("input", "input image", "the input image.").type_image_in (),
  Argument ("ouput", "output image", "the output image.").type_image_out (),
  Argument::End
};

在“app.h”中:

#define ARGUMENTS   const MR::Argument __command_arguments[]

解决方案: 关闭项目并重新打开它解决了问题......

最佳答案

解决方案:关闭项目并重新打开它解决了问题......

关于c++ - 无法解析 header 中定义的 Eclipse C++ 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15478415/

相关文章:

java - 在所有项目中运行所有测试类

c++ - 访问违规写入位置

c++ - 如何获取keyPoint ID

c++ - C++ 中的 Try-Catch 问题

java.lang.NoSuchMethodError : org. apache.commons.codec.binary.Hex.encodeHexString 错误

java - 脚本 Eclipse

c++ - 将 WinMain(或 wWinMain)参数传递给普通的 main

c++ - 无法实现单例模式

java - Android,在 Java 中将邮政编码转换为经度和纬度的最快、最有效的方法是什么?

c++ - 运行时错误。我知道在哪里,但我不知道为什么以及如何纠正它