Unresolved external symbol with openCV
问题 I'm trying to initialize OpenNI sensors using OpenCV in order to get depth map from depth sensor of my kinect. The code I used to get one depth image: and The output I get: LNK2019: unresolved external symbol "int __cdelc cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) reference in function _main In the .pro file I have: QT += widgets WITH_OPENNI = ON 来源: https://stackoverflow.com/questions/16038602/unresolved-external-symbol-with-opencv