title: undefined reference to cv::inpaint - Error 1
body: <p>I need a help. 
  Few months ago I make this c++ code in Visual studio on Windows. I make .exe file from that code and everything work fine just like this. That is simple code for image-processing. Now I trying to do same thing in Eclipse on Linux so that I can put executable file on Linux web server. But I have this error:</p>
  
  <pre><code>In function `main':
  main.cpp:(.text.startup+0x317): undefined reference to `cv::inpaint(cv::_InputArray const&amp;, cv::_InputArray const&amp;, cv::_OutputArray const&amp;, double, int)'
  collect2: ld returned 1 exit status
  make: *** [inpaint] Error 1
  </code></pre>
  
  <p>I use OpencCV 2.4.1 library. This is source code:</p>
  
  <pre><code>#include "opencv2/highgui/highgui.hpp"
  #include "opencv2/imgproc/imgproc.hpp"
  #include "opencv2/photo/photo.hpp"
  #include &lt;iostream&gt;
  
  
  using namespace cv;
  using namespace std;
  Mat img, img0, maska;
  int main( int argc, char** argv )
  {
  
  ...
     }
  Mat inpainted;
  inpaint(img0, img, inpainted, 2, CV_INPAINT_NS);
  char imeobr[256] = "images/img-uploads/finish";
  strcat( imeobr, argv[1] );
  strcat( imeobr, ".jpg" );
  imwrite(imeobr, inpainted);
  return 0;
  }
  </code></pre>
  
  <p>I think that is a problem in input source, because is not a fixed name of input images. But, I need dynamically change input source for every user of application. 
  Please help people. What I can do?</p>