From fc7abcf267686f8ee212a98dbde10e1722f4adca Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Sat, 7 Jan 2023 14:30:29 +0100 Subject: [PATCH] Define `parse_errors` as `extern` in the header When defined as it is, it causes this build error: /usr/bin/ld: geekcode.o:(.bss+0x0): multiple definition of `parse_errors'; parse.o:(.data.rel.local+0x0): first defined here --- parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.h b/parse.h index 84c16ac..e7d20af 100644 --- a/parse.h +++ b/parse.h @@ -8,5 +8,5 @@ enum parse_errors_t { EFERROR, }; -const char *parse_errors[]; +extern const char *parse_errors[]; unsigned read_code(FILE *in, unsigned *line_count);