title: cvLoadImage Returning NULL
body: <p>I am working on Ubuntu 12.04,32 bit platform with OpenCV Version 2.4.1 on eclipse ide. The cvLoadImage() function is returning me a NULL value even after putting the image in the current Location of the project where I have the cpp file.</p>
  
  <pre><code>#include "highgui.h"
  #include&lt;iostream&gt;
  using namespace std;
  int main( int argc, char** argv )
  {
    char image[80]="baboon.jpg";
    IplImage* img = cvLoadImage(image,CV_LOAD_IMAGE_COLOR);
    cout&lt;&lt;img&lt;&lt;endl;
  }
  </code></pre>
  
  <p>Following are my include file directory:</p>
  
  <blockquote>
    <p>-I/usr/local/include/opencv -I/usr/local/include</p>
  </blockquote>
  
  <p>and </p>
  
  <p>Following are the library files:</p>
  
  <blockquote>
    <p>/usr/local/lib/libopencv_calib3d.so
    /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so
    /usr/local/lib/libopencv_features2d.so
    /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so
    /usr/local/lib/libopencv_highgui.so
    /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so
    /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so
    /usr/local/lib/libopencv_objdetect.so
    /usr/local/lib/libopencv_photo.so
    /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so
    /usr/local/lib/libopencv_video.so
    /usr/local/lib/libopencv_videostab.so</p>
  </blockquote>
  
  <p>My img value is always zero (NULL). I am not getting any compilation errors.I checked similar posts on the forum but none of them could solve my problem.I even tried with a PNG image but faced the same issue.Kindly let know if anyone faced a similar issue before.
  Thanks in advance</p>