title: Error in Release mode but not in Build mode
body: <p>I recently made a project using opencv and c++ in visual 2008
  When i build the project in Debug mode - i don't face any issues - but when i build it in release mode i get the following errors:</p>
  
  <pre><code>1&gt;test.obj : error LNK2001: unresolved external symbol _cvHaarDetectObjects
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvCvtColor
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvCreateImage
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvDestroyWindow
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvWaitKey
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvGetSize
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvReleaseCapture
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvCreateMemStorage
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvClone
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvNamedWindow
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvQueryFrame
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvLoad
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvRectangle
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvCreateCameraCapture
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvGetSeqElem
  1&gt;test.obj : error LNK2001: unresolved external symbol _cvShowImage
  </code></pre>