Skip to content

Commit

Permalink
Fix an error for undefined symbols
Browse files Browse the repository at this point in the history
```
Undefined symbols for architecture arm64:
  "yylex(YYSTYPE*, code_location*)", referenced from:
      yyparse() in named_references-92348a.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FUndefined symbols for architecture arm64:
  "yylex(YYSTYPE*, code_location*)", referenced from:
      yyparse() in typed_midrule_actions-686229.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
F
```
  • Loading branch information
ydah committed Aug 9, 2024
1 parent fc218f4 commit 5f5cfd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions spec/fixtures/integration/named_references.y
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
%{
#include <stdio.h>

typedef struct code_location {
int first_line;
int first_column;
int last_line;
int last_column;
#ifdef __cplusplus
code_location()
: first_line(0), first_column(0), last_line(0), last_column(0) {}
#endif
} code_location_t;

#define YYLTYPE code_location_t
#define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (N) \
Expand Down
12 changes: 0 additions & 12 deletions spec/fixtures/integration/typed_midrule_actions.y
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
%{
#include <stdio.h>

typedef struct code_location {
int first_line;
int first_column;
int last_line;
int last_column;
#ifdef __cplusplus
code_location()
: first_line(0), first_column(0), last_line(0), last_column(0) {}
#endif
} code_location_t;

#define YYLTYPE code_location_t
#define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (N) \
Expand Down

0 comments on commit 5f5cfd1

Please sign in to comment.