Deep-Image-Analogy
Deep-Image-Analogy copied to clipboard
undefined reference to ‘‘caffe::Net<float>::Net(...)" while sh scripts/make_deep_image_analogy.sh
After I compiled caffe and tested it successfully, and then I followed the Configure & Build(Linux version). While I executing "sh scripts/config_deep_image_analogy.sh", the error prompt is like this:
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). ./include/caffe/parallel.hpp(99): warning: type qualifier on return type is meaningless
./include/caffe/parallel.hpp(99): warning: type qualifier on return type is meaningless
deep_image_analogy/source/lbfgs.cu:17:9: warning: #pragma once in main file
#pragma once
^
deep_image_analogy/source/lbfgs.cu:17:9: warning: #pragma once in main file
#pragma once
^
/tmp/tmpxft_00002e95_00000000-29_Classifier.o:在函数‘Classifier::Classifier(std::string const&, std::string const&)’中:
Classifier.cpp:(.text+0xa8):对‘caffe::Net
I am a green hand to caffe and this project, so how should I fix this error? Thanks a lot!
I changed the version of my gcc and g++ from 4.9 to 5.0, and recompiled it successfully. But I don't know why.