Open nightshade427 opened 9 years ago
This is the last sha I can build with aba14a7e38e61f8158b17f41309744b39fd2abdc
Hi Chris @redpony
I find the same problem when I compile the program. How to fix it? Thanks.
libextractor.a(data_array.cc.o): In function
igzstream::~igzstream()':
/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:98: undefined reference to gzstreambase::~gzstreambase()' libextractor.a(data_array.cc.o): In function
~igzstream':
/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:98: undefined reference to gzstreambase::~gzstreambase()' libextractor.a(data_array.cc.o): In function
ReadFile::Init(std::string const&)':
/home/jjhu/Research/cdec/extractor/../utils/filelib.h:62: undefined reference to FileExists(std::string const&)' libextractor.a(data_array.cc.o): In function
igzstream':
/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:102: undefined reference to gzstreambase::gzstreambase(char const*, int)' /home/jjhu/Research/cdec/extractor/../utils/gzstream.h:102: undefined reference to
gzstreambase::~gzstreambase()'
libextractor.a(data_array.cc.o):(.rodata._ZTI9igzstream[_ZTI9igzstream]+0x18): undefined reference to typeinfo for gzstreambase' libextractor.a(data_array.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x10): undefined reference to
typeinfo for gzstreambase'
libextractor.a(data_array.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x18): undefined reference to gzstreambase::~gzstreambase()' libextractor.a(data_array.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x20): undefined reference to
gzstreambase::~gzstreambase()'
libextractor.a(data_array.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x38): undefined reference to typeinfo for gzstreambase' libextractor.a(data_array.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x40): undefined reference to
virtual thunk to gzstreambase::~gzstreambase()'
libextractor.a(data_array.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x48): undefined reference to virtual thunk to gzstreambase::~gzstreambase()' collect2: error: ld returned 1 exit status make[2]: *** [extractor/data_array_test] Error 1 make[1]: *** [extractor/CMakeFiles/data_array_test.dir/all] Error 2 Linking CXX executable extract [ 94%] Built target extract make: *** [all] Error 2
I don't know what the problem is exactly but I found a workaround. The error is caused by the tests in the extractor subfolder. People who don't have gtest/gmock installed, don't run into this issue. So a quick fix is to comment out the lines in extractor/CMakeLists.txt from "if(GTEST_FOUND)" to "endif(GTEST_FOUND)"
I cannot build using "d42f17e" (current master) on ubuntu 14.10/14.04.
repo: