From 5f5cfd1a847a3b2dfe2a2b6b1cb5cd653c5d97e3 Mon Sep 17 00:00:00 2001 From: ydah Date: Fri, 9 Aug 2024 22:31:39 +0900 Subject: [PATCH] Fix an error for undefined symbols ``` 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 ``` --- spec/fixtures/integration/named_references.y | 12 ------------ spec/fixtures/integration/typed_midrule_actions.y | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/spec/fixtures/integration/named_references.y b/spec/fixtures/integration/named_references.y index 6ff3d701..80c1676a 100644 --- a/spec/fixtures/integration/named_references.y +++ b/spec/fixtures/integration/named_references.y @@ -1,18 +1,6 @@ %{ #include -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) \ diff --git a/spec/fixtures/integration/typed_midrule_actions.y b/spec/fixtures/integration/typed_midrule_actions.y index 5570ad67..435cc076 100644 --- a/spec/fixtures/integration/typed_midrule_actions.y +++ b/spec/fixtures/integration/typed_midrule_actions.y @@ -1,18 +1,6 @@ %{ #include -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) \