Maybe you should ask about this on the OpenCV forum. It sounds like there is a circular dependency between the two libraries. I cannot believe that this would be true for such a popular framework as OpenCV, so maybe your problem has something to do with a function of the same name in two different namespaces.