title: Using cvLoad I get Unspecified error (The node does not represent a user object (unknown type?)) error
body: <p>here is the full error message:</p>
  
  <pre><code> OpenCV Error: Unspecified error (The node does not represent
   a user object (unknown type?)) in cvRead, file 
  /home/abe/Documents/opencv-2.4.6.1/modules/core/src/persistence.cpp, line 4997   
  </code></pre>
  
  <p>I saw on google that this might be a bug here</p>
  
  <p><a href="http://opencv-users.1802565.n2.nabble.com/face-detection-cvLoad-td4467872.html" rel="nofollow">http://opencv-users.1802565.n2.nabble.com/face-detection-cvLoad-td4467872.html</a></p>
  
  <p>here is how im running it </p>
  
  <pre><code>#include &lt;cv.h&gt;
  #include &lt;highgui.h&gt;
  using namespace std;
  
  int main()
  {
  
  
   cvLoad("/home/abe/Documents/opencv-2.4.6.1/data/haarcascades/haarcascade_frontalface_alt2.xml");
  
      return 0;
  }
  </code></pre>
  
  <p>many programs load xml files with this function and this file is from opencv directory so i know its good I tried the workaround using cvErode in the above link but still got same error any help is appreciated </p>
  
  <p>btw compile on ubuntu raring with this which works for every other program</p>
  
  <pre><code>g++ b.cpp -o b `pkg-config --cflags --libs opencv`
  </code></pre>