zint / zint-gpl-only

Zint Barcode Generator
https://zint.org.uk/
GNU General Public License v3.0
522 stars 137 forks source link

Multiple Definition: backend source file code16k.c and code128.c multiple definition of `list' #78

Closed uikino closed 2 years ago

uikino commented 4 years ago

Bug

The variable list multiple definition in code16k.c line 44 ,code128.c line 42

Solution

Precede list variables with the static keyword like that

// code16k.c line 44
static int list[2][170];
// code128.c line 42
static int list[2][170];

Sorry,my English is poor

kingbuzzman commented 2 years ago

I have the same issue.. any update on this?

kingbuzzman commented 2 years ago

After struggling with this, and even creating a stackoverflow question to assist my search. It boiled down to just using the more up to date/official repo over at sourceforge if you need the code, or just use the artifacts of a particular release you're interested in (which is what i used).

uikino commented 2 years ago

@kingbuzzman I'm so sorry for forgetting about these issues while on vacation for Chinese New Year.I actually raised this issue while waiting for the author to fix it, but I forgot that the issue was still open because I was busy at work. thank you.

uikino commented 2 years ago

Solution

please goto official repo at sourceforge