K
K
kill942015-12-12 17:27:12
C++ / C#
kill94, 2015-12-12 17:27:12

How to fix "unresolved external elements: 2" error?

Installed the Opencv library. connected all the files to Visual Studio,
but when creating an empty image by the command, it
Mat original_image;
gives an error

error LNK1120: неразрешенных внешних элементов: 2	
error LNK2019: ссылка на неразрешенный внешний символ "public: void __cdecl cv::Mat::deallocate(void)" ([email protected]@[email protected]@QEAAXXZ) в функции "public: void __cdecl cv::Mat::release(void)" ([email protected]@[email protected]@QEAAXXZ)
error LNK2019: ссылка на неразрешенный внешний символ "void __cdecl cv::fastFree(void *)" ([email protected]@@[email protected]) в функции "public: __cdecl cv::Mat::~Mat(void)" (??1[email protected]@@[email protected])

how to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-12-12
@vilgeforce

Probably you didn't include the lib, or where is the implementation of cv::Mat::deallocate...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question