title: Undefined symbols for architecture x86_64, linker issues on Yosemite with OpenCV
body: <p>I'm having a linker error trying to build some code that takes advantage of some opencv libraries.
  The error itself is:</p>
  
  <blockquote>
    <p>Undefined symbols for architecture x86_64:</p>
    
    <p>"cv::Exception::Exception(int, std::__cxx11::basic_string, std::allocator > const&amp;, std::__cxx11::basic_string, std::allocator > const&amp;, std::__cxx11::basic_string, std::allocator > const&amp;, int)"</p>
    
    <p>ld: symbol(s) not found for architecture x86_64</p>
  </blockquote>
  
  <p>What are common causes of this error?
  My searching has turned up that a lot of people had issues compiling opencv with wrong libraries or in i386 instead of x86_64. I am fairly certain I don't have either of these issues. I installed opencv through homebrew with the flag --c++11 (build with c++11) and I got</p>
  
  <blockquote>
    <p>/usr/local/Cellar/opencv/2.4.11_1/lib/libopencv_core.dylib: Mach-O 64-bit dynamically linked shared library x86_64 </p>
  </blockquote>
  
  <p>when I ran:</p>
  
  <blockquote>
    <p>file /usr/local/Cellar/opencv/2.4.11_1/lib/libopencv_core.dylib</p>
  </blockquote>
  
  <p>Any help would be greatly appreciated! Please let me know if there is anything else I can provide that would help.</p>