Quantcast
Viewing all articles
Browse latest Browse all 19555

imread and boost path

Hello ! It's not an 100% OpenCV question but I was wondering if you already had this problem, I use [the boost library](http://www.boost.org/) to handle path in my project but I'm stuck with this chunk of code: fs::path p("my/path"); imread(p.string(), 0); I have a lot of errors related to string: CMakeFiles/random.dir/lib/random.cpp.o: In function `main': random.cpp:(.text+0x48c): undefined reference to `cv::imread(cv::String const&, int)' CMakeFiles/random.dir/lib/random.cpp.o: In function `cv::String::~String()': random.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x14): undefined reference to `cv::String::deallocate()' CMakeFiles/random.dir/lib/random.cpp.o: In function `cv::Mat::~Mat()': random.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to `cv::fastFree(void*)' CMakeFiles/random.dir/lib/random.cpp.o: In function `cv::Mat::release()': random.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x4b): undefined reference to `cv::Mat::deallocate()' CMakeFiles/random.dir/lib/random.cpp.o: In function `cv::String::String(std::__cxx11::basic_string, std::allocator> const&)': random.cpp:(.text._ZN2cv6StringC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN2cv6StringC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x69): undefined reference to `cv::String::allocate(unsigned long)' collect2: error: ld returned 1 exit status CMakeFiles/random.dir/build.make:96: recipe for target 'random' failed Somebody can explain me the problem please ? Thank you !

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>