Hi,
ropebwt2 failed to compile on my system with gcc 10.0.1. Here's the compilation error (here the full log):
gcc -g -Wall -O2 rle.o rope.o mrope.o rld0.o crlf.o main.o -o ropebwt2 -lz -lpthread
/usr/bin/ld: rope.o:/home/luca/Software/ropebwt2/rle.h:33: multiple definition of `rle_auxtab'; rle.o:/home/luca/Software/ropebwt2/rle.h:33: first defined here
/usr/bin/ld: main.o:/home/luca/Software/ropebwt2/rle.h:33: multiple definition of `rle_auxtab'; rle.o:/home/luca/Software/ropebwt2/rle.h:33: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ropebwt2] Error 1
The problem is that rle_auxtab is defined in rle.h which is included in multiple files. Making rle_auxtab extern seems to solve it.
Hi, ropebwt2 failed to compile on my system with gcc 10.0.1. Here's the compilation error (here the full log):
The problem is that
rle_auxtab
is defined inrle.h
which is included in multiple files. Makingrle_auxtab
extern seems to solve it.