I have gcc and g++ correctly set. However, when I try to install OpenCV, it gives me this error -
g++: error: /Users/vgokhale/Desktop/opencv-2.4.5/modules/highgui/src/window_cocoa.mm: Objective-C++ compiler not installed on this system
I am not sure how to set the Objective-C++ compiler. I thought this would be g++? Searching google doesn't return much. This seems to be a very rare error. Why does this occur?