title: How can I compile Opencv API on gcc
body: <p>I am trying to compile an an .C file which contains API from Opencv library.<br>
  It seems the compiler doesn't find the API. I use the normal command for compilation  </p>
  
  <pre><code>   gcc new.c -c
     gcc new.o -o new1 -l highgui  
  </code></pre>
  
  <p>highgui is a .h file which is calling other .h files from Opencv lib</p>
  
  <p>I think I have the same problem as the thread below as I get almost same error.   </p>
  
  <p><a href="https://stackoverflow.com/questions/4889048/gcc-how-can-i-make-this-compiling-and-linking-work">GCC: How can I make this compiling and linking work?</a></p>