Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created September 3, 2014 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sh4869/017fcea8fb05e0721257 to your computer and use it in GitHub Desktop.
Save sh4869/017fcea8fb05e0721257 to your computer and use it in GitHub Desktop.
opencv compile error
test.cpp:(.text+0x6f): `cv::imread(std::string const&, int)' に対する定義されていない参照です
test.cpp:(.text+0xbf): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0xd4): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0xf6): `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)' に対する定義されていない参照です
test.cpp:(.text+0x14e): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x166): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x193): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です
test.cpp:(.text+0x1aa): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x1c2): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x1ef): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です
test.cpp:(.text+0x206): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x21e): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x24b): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です
test.cpp:(.text+0x262): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x27a): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x2a7): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です
test.cpp:(.text+0x2bb): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x2d3): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x300): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です
test.cpp:(.text+0x322): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x33a): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x37e): `cv::adaptiveThreshold(cv::_InputArray const&, cv::_OutputArray const&, double, int, int, int, double)' に対する定義されていない参照です
test.cpp:(.text+0x3c2): `cv::namedWindow(std::string const&, int)' に対する定義されていない参照です
test.cpp:(.text+0x422): `cv::namedWindow(std::string const&, int)' に対する定義されていない参照です
test.cpp:(.text+0x482): `cv::namedWindow(std::string const&, int)' に対する定義されていない参照です
test.cpp:(.text+0x4e2): `cv::namedWindow(std::string const&, int)' に対する定義されていない参照です
test.cpp:(.text+0x542): `cv::namedWindow(std::string const&, int)' に対する定義されていない参照です
/tmp/cce8fVaW.o:test.cpp:(.text+0x5a2): `cv::namedWindow(std::string const&, int)' に対する定義されていない参照がさらに続いています
/tmp/cce8fVaW.o: 関数 `main' 内:
test.cpp:(.text+0x636): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x67c): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x6b0): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x6f6): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x72a): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x770): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x7a4): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x7ea): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x81e): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x864): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x895): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x8db): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x90c): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x952): `cv::imshow(std::string const&, cv::_InputArray const&)' に対する定義されていない参照です
test.cpp:(.text+0x97a): `cv::waitKey(int)' に対する定義されていない参照です
/tmp/cce8fVaW.o: 関数 `cv::Mat::~Mat()' 内:
test.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x2b): `cv::fastFree(void*)' に対する定義されていない参照です
/tmp/cce8fVaW.o: 関数 `cv::Mat::release()' 内:
test.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x3b): `cv::Mat::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