繁体   English   中英

无法解析标头中定义的Eclipse C ++函数

[英]eclipse c++ function defined in header could not be resolved

我正在尝试编译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并放置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[]

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM