title: OpenCV 2.4.2: Undefined References
body: <ul>
  <li>libcv-dev install</li>
  <li>10.04</li>
  </ul>
  
  <p>Any ideas as to where the following might be defined?</p>
  
  <pre><code>ahcarpenter@ahcarpenter-laptop:~$ g++ objectmarker.o -o objectmarker
  objectmarker.o: In function `on_mouse(int, int, int, int, void*)':
  objectmarker.cpp:(.text+0x12f): undefined reference to `cvCloneImage'
  objectmarker.cpp:(.text+0x1d1): undefined reference to `cvRectangle'
  objectmarker.cpp:(.text+0x1ea): undefined reference to `cvShowImage'
  objectmarker.cpp:(.text+0x1f4): undefined reference to `cvReleaseImage'
  objectmarker.o: In function `main':
  objectmarker.cpp:(.text+0x391): undefined reference to `cvNamedWindow'
  objectmarker.cpp:(.text+0x3aa): undefined reference to `cvSetMouseCallback'
  objectmarker.cpp:(.text+0x4da): undefined reference to `cvLoadImage'
  objectmarker.cpp:(.text+0x50f): undefined reference to `cvShowImage'
  objectmarker.cpp:(.text+0x519): undefined reference to `cvWaitKey'
  objectmarker.cpp:(.text+0x53f): undefined reference to `cvReleaseImage'
  objectmarker.cpp:(.text+0x54e): undefined reference to `cvDestroyWindow'
  objectmarker.cpp:(.text+0xd7f): undefined reference to `cvReleaseImage'
  objectmarker.cpp:(.text+0xdf3): undefined reference to `cvDestroyWindow'
  collect2: ld returned 1 exit status
  </code></pre>