报错如下:
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: undefined reference to deflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: undefined reference to deflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: undefined reference to deflateEnd'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: undefined reference to deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function void read_compressed<char>(int, char*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: undefined reference to inflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: undefined reference to inflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260: undefined reference to inflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function void read_compressed<graphchi::degree>(int, graphchi::degree*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: undefined reference to inflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: undefined reference to inflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260: undefined reference to inflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function void read_compressed<unsigned char>(int, unsigned char*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: undefined reference to inflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: undefined reference to inflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260: undefined reference to inflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function unsigned long write_compressed<void>(int, void*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: undefined reference to deflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: undefined reference to deflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: undefined reference to deflateEnd'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: undefined reference to deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function unsigned long write_compressed<unsigned char>(int, unsigned char*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: undefined reference to deflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: undefined reference to deflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: undefined reference to deflateEnd'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: undefined reference to deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function unsigned long write_compressed<graphchi::degree>(int, graphchi::degree*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: undefined reference to deflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: undefined reference to deflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: undefined reference to deflateEnd'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: undefined reference to deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function unsigned long write_compressed<node_label>(int, node_label*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: undefined reference to deflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: undefined reference to deflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: undefined reference to deflateEnd'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: undefined reference to deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: in function void read_compressed<node_label>(int, node_label*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: undefined reference to inflateInit_'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: undefined reference to inflate'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260: undefined reference to inflateEnd'
make报错/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: 对 deflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: 对 deflate'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: 未定义的 deflateEnd'
引用/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: 对 deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: 在函数 void read_compressed<char>(int, char*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: 对 inflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: 未定义的 inflate'
引用/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260: 对 inflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: 在函数 void read_compressed<graphchi::degree>(int, graphchi::degree*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: 对 inflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: 未定义的 inflate'
引用/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260: 对 inflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: 在函数 void read_compressed<unsigned char>(int, unsigned char*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: 对 inflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: 未定义的 inflate'
引用/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:260:对 inflateEnd'
/usr/bin/ld 的未定义引用:/tmp/ccZx9iil.o:在函数 unsigned long write_compressed<void>(int, void*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160:对 deflateInit_'
/usr/bin/ld 的未定义引用:/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177:对 deflate'
/usr/bin/ld:/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: 对 deflateEnd'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: 对 deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o 的未定义引用: 在函数 unsigned long write_compressed<unsigned char>(int, unsigned char*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: 对 deflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: 对 deflate'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: 对 deflateEnd'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: 对 deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: 在函数 unsigned long write_compressed<graphchi::degree>(int, graphchi::degree*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160: 对 deflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177: 对 deflate'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191: 对 deflateEnd'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: 对 deflateEnd'
/usr/bin/ld 的未定义引用: /tmp/ccZx9iil。o:在函数 unsigned long write_compressed<node_label>(int, node_label*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:160:对 deflateInit_'
/usr/bin/ld 的未定义引用:/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:177:对 deflate'
/usr/bin/ld 的未定义引用:/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:191:未定义的引用 deflateEnd'
/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:181: 对 deflateEnd'
/usr/bin/ld: /tmp/ccZx9iil.o: 在函数 void read_compressed<node_label>(int, node_label*, unsigned long)':
/mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:222: 对 inflateInit_'
/usr/bin/ld 的未定义引用: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.hpp:243: 未定义的 inflate'
引用/usr/bin/ld: /mnt/c/Users/90554/Documents/Code/C++/graphchi-cpp-master/./src/util/ioutil.HPP:260: undefined reference to inflateEnd'
解决办法:makefile文件中加入LDLIBS += -lz
先apt-get install zlib1g-dev,然后加命令进makefile,使得正确地链接到zlib
提供的函数和符号