How do you "link" the file to OpenCV?
Especially since AFAIK OpenCV is a set of libraries like Qt, and not a stand-alone application.