Add -static to your ld command to link the program statically. On Wed, Jan 19, 2011 at 12:38 AM, triStone <liulei1...@gmail.com> wrote:
> When I use this program in another computer, it reminder me that " > error while loading shared libraries: libprotobuf.so.6: cannot open > shared object file: No such file or directory". > How can I use this program in a computer without libprotobuf.so.6? > Should I change the compile script? > In my makefile, I use this > > INCS := /usr/local/include > LIBS := -pthread -L/usr/local/lib -lprotobuf -lprotoc -lz > .... > ${OUTPUT}: ${OBJS} > ${LD} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} > > %.o : %.cpp > ${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@ > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.