c++ - linking g++ and lib in the make file not working -
i'm compiling g++, when run make, following error:
./libnbmdt.so: undefined reference `inflateinit2_' ./libnbmdt.so: undefined reference `zlibversion' ./libnbmdt.so: undefined reference `inflate' ./libnbmdt.so: undefined reference `inflateinit_' ./libnbmdt.so: undefined reference `inflateend' collect2: ld returned 1 exit status make[2]: *** [nbbid2md] error 1 make[1]: *** [all] error 2 make: *** [nb/nbmdt] error 1 has seen before? guess -l<somelibrary> needed, don't know 1 ... it's c++ program way. guess zlib missing when g++ tries link them? of libraries being used are:
mt_vlibs = \ libjansson.a \ libnbi18n.a \ libnbslidlc.a \ libnbslidls.a \ libcurl.a \ libvdb \ libnborb \ libnbbase \ -lvxul \ -lvxssl \ -lvxcrypto i can't share makefile unfortunately. thanks
you right - "-lz" flag 1 used. zlib not linked not "inflate" functions.
mind following: "-lz" must after "-lnb*" stuff, because linking order important gcc toolchain.
Comments
Post a Comment