Are there any syntax errors in the code snippet here?

Posted by Mask on Stack Overflow See other posts from Stack Overflow or by Mask
Published on 2010-03-26T00:55:30Z Indexed on 2010/03/26 1:03 UTC
Read the original article Hit count: 382

Filed under:
|
|
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 MinGW/include/stdint.h,is it caused by this conflict?

© Stack Overflow or respective owner

Related posts about c++

Related posts about debug