title: Undefined symbols for architecture x86_64 while running OpenCV example program
body: <p>I've been trying to compile and build a openCV example program located in here "<a href="https://docs.opencv.org/3.1.0/d5/d6f/tutorial_feature_flann_matcher.html" rel="nofollow noreferrer">https://docs.opencv.org/3.1.0/d5/d6f/tutorial_feature_flann_matcher.html</a>".</p>
  
  <p>I've followed this series of tutorial to install OpenCV in mac "<a href="https://www.youtube.com/watch?v=U49CVY8yOxw" rel="nofollow noreferrer">https://www.youtube.com/watch?v=U49CVY8yOxw</a>"</p>
  
  <p>I tried to print the OpenCV version <code>std::cout &lt;&lt; "openCV Version : " &lt;&lt; CV_VERSION &lt;&lt; std::endl;</code> and its prints correctly which means OpenCV has been installed correctly.</p>
  
  <p>But when i run the above example code i get Undefined Symbols error</p>
  
  <p><a href="https://i.stack.imgur.com/ETpyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ETpyH.png" alt="enter image description here"></a></p>
  
  <p>Can someone help me on this...</p>