ubuntu16.04下编译caffe-ssd时,报错 undefined reference to `caffe::CuDNNTanHLayer<double>

~/caffe-ssd$ make all -j8

编译时报错:
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::Reshape(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/get_image_size.bin' failed
make: *** [.build_release/tools/get_image_size.bin] Error 1
make: *** Waiting for unfinished jobs....
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::.build_release/vectorlib</libcaffe.so: caffeundefined reference ::to Blob<`caffe::CuDNNTanHLayer<double>::double>LayerSetUp(*, std::allocator<stdcaffe:::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>:::ReshapeBlob<double>*> (> const&std, :std::vector<caffe:::Blob<double>*, stdvector<::allocator<caffe::caffe:Blob<double>*>: > const&)'Blob
.build_release/lib/libcaffe.so: <undefined floatreference >to `caffe::CuDNNTanHLayer<float>:*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `:caffeReshape::(CuDNNTanHLayerstd<:float:vector><:caffe::~:CuDNNTanHLayerBlob(<)float'>
*.,build_release /stdlib:/:libcaffe.soallocator:< caffeundefined: :referenceBlob <tofloat >`*caffe>: :>CuDNNTanHLayer const<&float,> :std::~:CuDNNTanHLayervector(<)caffe':
:.Blobbuild_release</floatlib>/*libcaffe.so,:  stdundefined: :referenceallocator <tocaffe :`:caffeBlob:<:floatCuDNNTanHLayer>*<>float >>: :constLayerSetUp&()std':
:.vectorbuild_release</caffelib:/:Bloblibcaffe.so<:float >undefined* ,reference  stdto: :`allocatorcaffe<:caffe::CuDNNTanHLayer:<Blobdouble<>float:>:*~>CuDNNTanHLayer (>) 'const
&.,build_release /stdlib:/:libcaffe.sovector:< caffeundefined: :referenceBlob <tofloat >`*caffe,: :stdCuDNNTanHLayer:<:allocatorfloat<>caffe:::~:CuDNNTanHLayerBlob(<)float'>
*.>build_release /> libconst/&libcaffe.so):'
undefined. build_releasereference/ libto/ libcaffe.so`:caffe :undefined:CuDNNTanHLayer <referencefloat >to: :`~caffeCuDNNTanHLayer:(:)CuDNNTanHLayer'<
double.>build_release:/:lib~/CuDNNTanHLayerlibcaffe.so(:) undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed
make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1
Makefile:619: recipe for target '.build_release/tools/create_label_map.bin' failed
make: *** [.build_release/tools/create_label_map.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::Reshape(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/convert_imageset.bin' failed
make: *** [.build_release/tools/convert_imageset.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::Reshape(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/caffe.bin' failed
make: *** [.build_release/tools/caffe.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::Reshape(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/compute_image_mean.bin' failed
make: *** [.build_release/tools/compute_image_mean.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::Reshape(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/extract_features.bin' failed
make: *** [.build_release/tools/extract_features.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::LayerSetUp(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::Reshape(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::Reshape(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::~CuDNNTanHLayer()'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<float>::LayerSetUp(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `caffe::CuDNNTanHLayer<double>::~CuDNNTanHLayer()'
collect2: error: ld returned 1 exit status
Makefile:619: recipe for target '.build_release/tools/upgrade_net_proto_text.bin' failed
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1

 
已邀请:

要回复问题请先登录注册