gcc - undefined reference to `lzma_code' -
i try pack application , static link libraries. error.the makefile shown below:
cc = gcc incpath = -i/home/johnny/application/filebasedreg/include/realitygrid libs = -l/home/johnny/application/filebasedreg/lib/realitygrid -lreg_steer -l:libxml2.a -l:libncurses.a -l:libm.a -l:libz.a -l:libtermcap.a objects = mini_steerer.o target = mini_steerer ###### compile ###### all: $(target) $(target): $(objects) $(cc) $(incpath) -o $(target) $(objects) $(libs) mini_steerer.o: ./mini_steerer.c ./mini_steerer.h $(cc) -c $(incpath) -o mini_steerer.o ./mini_steerer.c
i think need add 1 or 2 more static libraries, can't find are.
on debian / ubuntu system, apt-get install liblzma-dev
trick. link -llzma.
Comments
Post a Comment