Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save collinsnji/59c44b5b23331ce65c4bc83e2a7f6043 to your computer and use it in GitHub Desktop.
Save collinsnji/59c44b5b23331ce65c4bc83e2a7f6043 to your computer and use it in GitHub Desktop.
/tmp/ccYO5QZM.o: In function `Encoder::encodeAndRenderImage(std::__cxx11::basic_string<char, std::char_traits<char>, std:
:allocator<char> >&, RenderingInfo)':
encoder.cpp:(.text+0xa2e): undefined reference to `cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, in
t, int, int)'
/tmp/ccYO5QZM.o: In function `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)':
encoder.cpp:(.text._ZN2cv3MatC2EiiiRKNS_7Scalar_IdEE[_ZN2cv3MatC5EiiiRKNS_7Scalar_IdEE]+0xdb): undefined reference to `cv
::Mat::operator=(cv::Scalar_<double> const&)'
/tmp/ccYO5QZM.o: In function `cv::Mat::~Mat()':
encoder.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to `cv::fastFree(void*)'
/tmp/ccYO5QZM.o: In function `cv::Mat::create(int, int, int)':
encoder.cpp:(.text._ZN2cv3Mat6createEiii[_ZN2cv3Mat6createEiii]+0x9d): undefined reference to `cv::Mat::create(int, int c
onst*, int)'
/tmp/ccYO5QZM.o: In function `cv::Mat::release()':
encoder.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x4b): undefined reference to `cv::Mat::deallocate()'
/tmp/ccc2bQvz.o: In function `main':
source.cpp:(.text+0x14a): undefined reference to `cv::imwrite(cv::String const&, cv::_InputArray const&, std::vector<int,
std::allocator<int> > const&)'
/tmp/ccc2bQvz.o: In function `cv::String::String(char const*)':
source.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4d): undefined reference to `cv::String::allocate(unsigned l
ong)'
/tmp/ccc2bQvz.o: In function `cv::String::~String()':
source.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x14): undefined reference to `cv::String::deallocate()'
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment