ogdenpm/mklbr

Undefined reference to `showVersion' error when building on Crostini Linux

Closed this issue · 2 comments

After cloning the mklbr repo on my Crostini Linux system, when I try to build the program I get the error undefined reference to showVersion'`:

paoloamoroso@penguin:~/cpm/programs/mklbr$ gcc -omklbr -O3 mklbr.c
/usr/bin/ld: /tmp/ccJWLzvS.o: in function `main':
mklbr.c:(.text.startup+0x141): undefined reference to `showVersion'
collect2: error: ld returned 1 exit status

I'm using Crostini, the Linux container based on Debian Bullseye of chromeOS, on an ASUS Chromebox 3.

Thanks, gcc -omklbr -O3 mklbr.c _version.c works fine.