You are not logged in.
Hi,
Trying to build the ncbi Genome Workbench, I get the following compile error:
/usr/bin/g++ -pthread -Wl,--hash-style=gnu -Wl,--as-needed -O -Wl,-E test_density_map.o -Wl,-rpath,/usr/lib -Wl,-rpath-link,/mnt/extra/Arch64_build/gbench/src/gbench-2.0.0/GCC443-ReleaseMTDLL64/lib -L/mnt/extra/Arch64_build/gbench/src/gbench-2.0.0/GCC443-ReleaseMTDLL64/lib -lgui_utils -lxalnmgr -ltables -lncbi_xloader_genbank -lncbi_xreader_id1 -lncbi_xreader_id2 -lncbi_xreader_cache -lxconnect -lncbi_xreader -lid1 -lid2 -lseqsplit -lxcompress -lxobjmgr -lseqset -lseqedit -lseq -lseqcode -lsequtil -lpub -lmedline -lbiblio -lgeneral -lxser -lxutil -lxncbi -lz -lbz2 -llzo2 -lnsl -ldl -lm -lpthread -o test_density_map
/mnt/extra/Arch64_build/gbench/src/gbench-2.0.0/GCC443-ReleaseMTDLL64/lib/libncbi_xreader.so: undefined reference to `ncbi::CCompressionStream::Finalize(ncbi::CCompressionStream::EDirection)'
Now, the referenced function is in libxcompress.so which is in /mnt/extra/Arch64_build/gbench/src/gbench-2.0.0/GCC443-ReleaseMTDLL64/lib:
[~]$ nm -C /mnt/extra/Arch64_build/gbench/src/gbench-2.0.0/GCC443-ReleaseMTDLL64/lib/libxcompress.so | grep Finalize
0000000000017050 T ncbi::CCompressionStream::Finalize(ncbi::CCompressionStream::EDirection)
In the compile line, we first have -lncbi_xreader and later -lxcompress. From what i've read, this is the correct order, so I cannot understand why I get a undefined reference error.
Any suggestion on what I'm missing here?
Offline