Skip to content

Failing to on linux because of wchar_t #11

@mingodad

Description

@mingodad

I'm trying to use interrogate/parse_file on linux to parse wxWidgets-3.2.9 and I'm getting this error:

/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h:321:24: error: syntax error, unexpected wchar_t
typedef __WCHAR_TYPE__ wchar_t;
                       ^~~~~~~
Error in parsing.

I've created a file with:

typedef int wchar_t;
wchar_t a=3;

and I'm getting this:

/tmp/pp.c:1:13: error: syntax error, unexpected wchar_t
typedef int wchar_t;
            ^~~~~~~
Error in parsing.

It seems that 'wchar_t' is predefined as a keyword, gcc parses it without any error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions