title: Dev C++ with OpenCV compile error
body: <p>I'm using Dev C++ 4.9.9.2 and OpenCV 2.4.8, I'm also in Windows 7 x86. These are in my compiler setting, <code>-L"D:\opencv\build\x86\vc12\bin" -lopencv_highgui248 -lopencv_core248 -lopencv_flann248 -lopencv_gpu248 -lopencv_imgproc248 -lopencv_legacy248 -lopencv_ml248 -lopencv_nonfree248 -lopencv_objdetect248 -lopencv_photo248 -lopencv_video248 -lopencv_ts248.</code> Every time I compile my simple project, it shows this errors: Compiler: </p>
  
  <pre><code>OpenCV
  Executing  g++.exe...
  g++.exe "D:\VS Projects\WebCam\WebCam\loadimg.cpp" -o "D:\VS Projects\WebCam\WebCam\loadimg.exe"   -g3  -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include"  -I"C:\Dev-Cpp\include\c++\3.4.2\backward"  -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32"  -I"C:\Dev-Cpp\include\c++\3.4.2"  -I"C:\Dev-Cpp\include"  -I"D:\opencv\build\include\opencv2"  -I"D:\opencv\build\include"   -L"C:\Dev-Cpp\lib" -L"D:\opencv\build\x86\vc12\lib" -g3 
  In file included from D:/opencv/build/include/opencv2/core/core.hpp:4854,
                   from D:/opencv/build/include/opencv2/opencv.hpp:47,
                   from D:\VS Projects\WebCam\WebCam\loadimg.cpp:1:
  D:/opencv/build/include/opencv2/core/operations.hpp: In static member function `static cv::Ptr&lt;_Tp2&gt; cv::Algorithm::create(const std::string&amp;)':
  D:/opencv/build/include/opencv2/core/operations.hpp:3972: error: expected primary-expression before '&gt;' token
  D:/opencv/build/include/opencv2/core/operations.hpp:3972: error: expected primary-expression before ')' token
  
  D:/opencv/build/include/opencv2/core/operations.hpp: At global scope:
  D:/opencv/build/include/opencv2/core/operations.hpp:4024: error: got 2 template parameters for `void cv::AlgorithmInfo::addParam(cv::Algorithm&amp;, const char*, cv::Ptr&lt;_Tp2&gt;&amp;, bool, cv::Ptr&lt;_Tp2&gt; (cv::Algorithm::*)(), void (cv::Algorithm::*)(const cv::Ptr&lt;_Tp2&gt;&amp;), const std::string&amp;)'
  D:/opencv/build/include/opencv2/core/operations.hpp:4024: error:   but 1 required
  D:/opencv/build/include/opencv2/core/operations.hpp:4033: error: redefinition of `void cv::AlgorithmInfo::addParam(cv::Algorithm&amp;, const char*, cv::Ptr&lt;_Tp2&gt;&amp;, bool, cv::Ptr&lt;_Tp2&gt; (cv::Algorithm::*)(), void (cv::Algorithm::*)(const cv::Ptr&lt;_Tp2&gt;&amp;), const std::string&amp;)'
  D:/opencv/build/include/opencv2/core/operations.hpp:4024: error: `void cv::AlgorithmInfo::addParam(cv::Algorithm&amp;, const char*, cv::Ptr&lt;_Tp2&gt;&amp;, bool, cv::Ptr&lt;_Tp2&gt; (cv::Algorithm::*)(), void (cv::Algorithm::*)(const cv::Ptr&lt;_Tp2&gt;&amp;), const std::string&amp;)' previously declared here
  </code></pre>
  
  <p>Edit:
  there is my code.</p>
  
  <pre><code>include &lt;opencv2/opencv.hpp&gt; 
  #include &lt;iostream&gt;
  #include &lt;io.h&gt;
  
  using namespace cv;
  using namespace std;
  
  int main (int, char**) 
  {
    cv::VideoCapture camera(1); 
    if(!camera.isOpened())
    {
      std::cerr &lt;&lt; "ERROR: Could not open camera" &lt;&lt; std::endl;
      return 1;
    }
    cv::namedWindow("Webcam", CV_WINDOW_AUTOSIZE);
    while(1)
    {
      cv::Mat frame;
      camera &gt;&gt; frame;
      cv::imshow("Webcam", frame);
      if (cv::waitKey(30) &gt;= 0) 
      {
          imwrite("test.jpg", frame);
          break;
      }
    }
    return 0;
  }
  </code></pre>
  
  <p>Execution terminated</p>
  
  <p>Can you please help me on this? Please.
  Thanks.</p>