21实战caffe

~/workspace$ g++ -o app blob_demo.cpp -I/home/war/caffe/include/ -D CPU_ONLY -I/home/war/caffe/.build_release/src/ -L/home/war/caffe/build/lib/ -lcaffe
/usr/bin/ld: /tmp/ccRiXSL0.o: undefined reference to symbol '_ZN6google4base21CheckOpMessageBuilder7ForVar2Ev'
//usr/lib/x86_64-linux-gnu/libglog.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

书的第8天,我在编写完第一部分的代码,添加完float *p =a.mutable_cpu_data()......那段代码后再输入
g++ -o app blob_demo.cpp -I/home/war/caffe/include/ -D CPU_ONLY -I/home/war/caffe/.build_release/src/ -L/home/war/caffe/build/lib/ -lcaffe

就出现上面的问题了是什么原因,有人遇到类似的问题吗
已邀请:

要回复问题请先登录注册