title: OpenCV error: LNK2019
body: <p>I'm using OpenCV 2.4.6 and Visual Studio 2008 with Windows8.1 x86.
  When I debug my program it signal me 9 errors:</p>
  
  <pre><code>1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "int __stdcall cv::waitKey(int)" (?waitKey@cv@@YGHH@Z) referenced in function _main
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::imshow(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class cv::_InputArray const &amp;)" (?imshow@cv@@YGXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z) referenced in function _main
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "double __stdcall cv::threshold(class cv::_InputArray const &amp;,class cv::_OutputArray const &amp;,double,double,int)" (?threshold@cv@@YGNABV_InputArray@1@ABV_OutputArray@1@NNH@Z) referenced in function _main
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::cvtColor(class cv::_InputArray const &amp;,class cv::_OutputArray const &amp;,int,int)" (?cvtColor@cv@@YGXABV_InputArray@1@ABV_OutputArray@1@HH@Z) referenced in function _main
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::medianBlur(class cv::_InputArray const &amp;,class cv::_OutputArray const &amp;,int)" (?medianBlur@cv@@YGXABV_InputArray@1@ABV_OutputArray@1@H@Z) referenced in function _main
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::fastFree(void *)" (?fastFree@cv@@YGXPAX@Z) referenced in function "public: __thiscall cv::Mat::~Mat(void)" (??1Mat@cv@@QAE@XZ)
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "int __stdcall cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YGHPAHH@Z) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ)
  1&gt;FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::error(class cv::Exception const &amp;)" (?error@cv@@YGXABVException@1@@Z) referenced in function "public: int &amp; __thiscall cv::Mat::at&lt;int&gt;(int,int)" (??$at@H@Mat@cv@@QAEAAHHH@Z)
  1&gt;C:\Users\___________________________\Debug\FYD2_Control.exe : fatal error LNK1120: 8 unresolved externals
  1&gt;Build log was saved at "file://c:\Users\_________________\Debug\BuildLog.htm"
  1&gt;FYD2_Control - 9 error(s), 0 warning(s)
  </code></pre>
  
  <p>I've analized everything and I've noticed that while in this errors I have</p>
  
  <pre><code>(?waitKey@cv@@YGHH@Z)
  (?imshow@cv@@YGXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z)
  (?threshold@cv@@YGNABV_InputArray@1@ABV_OutputArray@1@NNH@Z)
  (?cvtColor@cv@@YGXABV_InputArray@1@ABV_OutputArray@1@HH@Z)
  (?medianBlur@cv@@YGXABV_InputArray@1@ABV_OutputArray@1@H@Z)
  (?fastFree@cv@@YGXPAX@Z)
  (?_interlockedExchangeAdd@cv@@YGHPAHH@Z)
  (?error@cv@@YGXABVException@1@@Z)
  </code></pre>
  
  <p>if I analize the .lib there is the same, but with A instead the first G</p>
  
  <pre><code>(?waitKey@cv@@YAHH@Z)
  (?imshow@cv@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z)
  (?threshold@cv@@YANABV_InputArray@1@ABV_OutputArray@1@NNH@Z)
  (?cvtColor@cv@@YAXABV_InputArray@1@ABV_OutputArray@1@HH@Z)
  (?medianBlur@cv@@YAXABV_InputArray@1@ABV_OutputArray@1@H@Z)
  (?fastFree@cv@@YAXPAX@Z)
  (?_interlockedExchangeAdd@cv@@YAHPAHH@Z)
  (?error@cv@@YAXABVException@1@@Z)
  </code></pre>
  
  <p>Substituting the A with G in the .lib I solve this problem, but later it gives me an other error</p>
  
  <pre><code>The procedure entry point ?fastFree@cv@@YGXPAX@Z could not be
  located in the dynamic link library
  </code></pre>
  
  <p>How can I solve this?</p>
  
  <p>Sorry for my english and thank's to anyone will answer.</p>