title: OpenCV 2.4.2 Compile Issues in "operations.hpp"
body: <p>I am trying to install openCV 2.4.2 on Windows x64 and Netbeans. I have followed the following guide: <a href="http://projectsfromhellandmore.blogspot.co.nz/2012/06/opencv-241-netbeans-windows-7-plus.html" rel="nofollow">http://projectsfromhellandmore.blogspot.co.nz/2012/06/opencv-241-netbeans-windows-7-plus.html</a></p>
  
  <p>When I try to compile the sample code included in the guide I get the following errors for the following blocks of code in the file "include/opencv2/core/operations.hpp" and I have not found any fixes or figured out how to fix it myself:</p>
  
  <pre><code>template&lt;typename _Tp, typename _Base&gt; inline void AlgorithmInfo::addParam(Algorithm&amp; algo, const char* parameter,
                Ptr&lt;_Tp&gt;&amp; value, bool readOnly, Ptr&lt;_Tp&gt; (Algorithm::*getter)(), void (Algorithm::*setter)(const Ptr&lt;_Tp&gt;&amp;),
                const string&amp; help)
  {
  //TODO: static assert: _Tp inherits from _Base
  addParam_(algo, parameter, ParamType&lt;_Base&gt;::type, &amp;value, readOnly,
            (Algorithm::Getter)getter, (Algorithm::Setter)setter, help);
  }
  </code></pre>
  
  <p>error: got 2 template parameters but 1 required</p>
  
  <p>And the second block of code with an error is:</p>
  
  <pre><code>template&lt;typename _Tp&gt; inline void AlgorithmInfo::addParam(Algorithm&amp; algo, const char* parameter,
                Ptr&lt;_Tp&gt;&amp; value, bool readOnly, Ptr&lt;_Tp&gt; (Algorithm::*getter)(), void (Algorithm::*setter)(const Ptr&lt;_Tp&gt;&amp;),
                const string&amp; help)
  {
  //TODO: static assert: _Tp inherits from Algorithm
  addParam_(algo, parameter, ParamType&lt;Algorithm&gt;::type, &amp;value, readOnly,
            (Algorithm::Getter)getter, (Algorithm::Setter)setter, help);
  }
  </code></pre>
  
  <p>error: redefinition of ...(the function in the first block of code)</p>
  
  <p>Any help would be greatly appreciated thanks</p>