Are there any syntax errors in the code snippet here?

typedef union YYSTYPE { int64_t iConst; // constant value float fConst; // constant value int iAttrLocator; // attribute locator (rowitem for int/float; offset+size for bits) int iFunc; // function id int iNode; // node index } YYSTYPE; It looks valid to me,but the cdt reports the following for the line `int64_t iConst;`: Multiple markers at this line: - syntax error before "int64_t" - no semicolon at the end of structure or union There are two files that defines `int64_t`,one is within the project itself(`sphinxstd.h`),the other is the project-independent **Includes** path `D:/MinGW/include/stdint.h`,is it caused by this conflict? **UPDATE** I select the code above,then by ctrl-x and ctrl-s plus ctrl-v and ctrl-s,the problem is gone! Is there any cdt users here?
Hm, you're using the same name YYSTYPE twice there - perhaps that's the problem?

以上就是Are there any syntax errors in the code snippet here?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准