我正在尝试编译一个 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/