Hi,
I got a linker error when I tried to build the historian object in Ubuntu 22.04.5 LTS:
undefined reference to gzread
undefined reference to gzopen
and similar messages.
Apparently, the issue is solved by changing the order of the -lz -lgsl -lboost_regex flags in the linking command:
working command:
g++ -lstdc++ -L/usr/lib -lm -lgslcblas \
-o bin/historian \
obj/historian.o obj/alignpath.o obj/ctok.o obj/dayhoff.o obj/diagenv.o obj/ECMrest.o obj/ECMunrest.o \
obj/fastseq.o obj/forward.o obj/gamma.o obj/gason.o obj/jc.o obj/jcrna.o obj/jones.o obj/jsonutil.o \
obj/knhx.o obj/lg.o obj/logger.o obj/logsumexp.o obj/memsize.o obj/model.o obj/nexus.o obj/optparser.o \
obj/pairhmm.o obj/presets.o obj/profile.o obj/quickalign.o obj/recon.o obj/refiner.o obj/sampler.o \
obj/seqgraph.o obj/simulator.o obj/span.o obj/stockholm.o obj/sumprod.o obj/tree.o obj/util.o obj/wag.o \
-lz -lgsl -lboost_regex
Suggestion:
Update the build system Makefile to ensure the linker flags -lz -lgsl -lboost_regex are placed at the end of the link command.
Best regards,
Riccardo
Hi,
I got a linker error when I tried to build the historian object in Ubuntu 22.04.5 LTS:
and similar messages.
Apparently, the issue is solved by changing the order of the -lz -lgsl -lboost_regex flags in the linking command:
working command:
Suggestion:
Update the build system Makefile to ensure the linker flags -lz -lgsl -lboost_regex are placed at the end of the link command.
Best regards,
Riccardo