Has their been a change in mpc syntax since the last website update?
Trying to follow tutorial and running into an issue at chapter 6, trying to run the following code:
Running this command...
cc -std=c99 -Wall thing.c mpc.c -ledit -lm -o thing.out (Using the file name 'thing' instead of 'parsing' as is used in the tutorial)
from mpc.h:1,
from thing.c:5:
mpc.h:927:29: error: conflicting types for ‘mpc_pdata_string_t’
typedef struct { char *x; } mpc_pdata_string_t;
^~~~~~~~~~~~~~~~~~
In file included from mpc.h:1:0,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from thing.c:5:
mpc.h:927:29: note: previous declaration of ‘mpc_pdata_string_t’ was here
typedef struct { char *x; } mpc_pdata_string_t;
^~~~~~~~~~~~~~~~~~
In file included from mpc.h:1:0,
from mpc.h:1,
from mpc.h:1,
from thing.c:5:
mpc.h:928:18: error: unknown type name ‘mpc_parser_t’
typedef struct { mpc_parser_t *x; mpc_apply_t f; } mpc_pdata_apply_t;
^~~~~~~~~~~~
mpc.h:928:35: error: unknown type name ‘mpc_apply_t’
typedef struct { mpc_parser_t *x; mpc_apply_t f; } mpc_pdata_apply_t;
^~~~~~~~~~~
mpc.h:928:52: error: conflicting types for ‘mpc_pdata_apply_t’
typedef struct { mpc_parser_t *x; mpc_apply_t f; } mpc_pdata_apply_t;
^~~~~~~~~~~~~~~~~
In file included from mpc.h:1:0,
from mpc.h:1,
from mpc.h:1,
from thing.c:5:
mpc.h:928:52: note: previous declaration of ‘mpc_pdata_apply_t’ was here
typedef struct { mpc_parser_t *x; mpc_apply_t f; } mpc_pdata_apply_t;
^~~~~~~~~~~~~~~~~
In file included from mpc.h:1:0,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from thing.c:5:
mpc.h:929:18: error: unknown type name ‘mpc_parser_t’
typedef struct { mpc_parser_t *x; mpc_apply_to_t f; void *d; } mpc_pdata_apply_to_t;
^~~~~~~~~~~~
mpc.h:929:35: error: unknown type name ‘mpc_apply_to_t’
typedef struct { mpc_parser_t *x; mpc_apply_to_t f; void *d; } mpc_pdata_apply_to_t;
^~~~~~~~~~~~~~
mpc.h:929:64: error: conflicting types for ‘mpc_pdata_apply_to_t’
typedef struct { mpc_parser_t *x; mpc_apply_to_t f; void *d; } mpc_pdata_apply_to_t;
^~~~~~~~~~~~~~~~~~~~
In file included from mpc.h:1:0,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from thing.c:5:
mpc.h:929:64: note: previous declaration of ‘mpc_pdata_apply_to_t’ was here
typedef struct { mpc_parser_t *x; mpc_apply_to_t f; void *d; } mpc_pdata_apply_to_t;
^~~~~~~~~~~~~~~~~~~~
In file included from mpc.h:1:0,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1,
from mpc.h:1, //had to subtract about a couple dozen of these from every error "block"
from thing.c:5:
mpc.h:930:18: error: unknown type name ‘mpc_parser_t’
typedef struct { mpc_parser_t *x; mpc_dtor_t dx; mpc_check_t f; char *e; } mpc_pdata_check_t;
^~~~~~~~~~~~
mpc.h:930:35: error: unknown type name ‘mpc_dtor_t’
typedef struct { mpc_parser_t *x; mpc_dtor_t dx; mpc_check_t f; char *e; } mpc_pdata_check_t;
^~~~~~~~~~
mpc.h:930:50: error: unknown type name ‘mpc_check_t’
typedef struct { mpc_parser_t *x; mpc_dtor_t dx; mpc_check_t f; char *e; } mpc_pdata_check_t;
^~~~~~~~~~~
mpc.h:930:76: error: conflicting types for ‘mpc_pdata_check_t’
struct { mpc_parser_t *x; mpc_dtor_t dx; mpc_check_t f; char *e; } mpc_pdata_check_t;
^~~~~~~~~~~~~~~~~
This is just a small sample, as I suspect the actual console output would be a mile long...
Has their been a change in mpc syntax since the last website update? Trying to follow tutorial and running into an issue at chapter 6, trying to run the following code:
Running this command...
cc -std=c99 -Wall thing.c mpc.c -ledit -lm -o thing.out
(Using the file name 'thing' instead of 'parsing' as is used in the tutorial)This is just a small sample, as I suspect the actual console output would be a mile long...