Unresolved External Symbol error OpenCV Cuda

asked 2019-07-15 06:54:07 -0500

Hello to everyone, I want to build an application using C++ OpenCV Cuda library. I have installed OpenCV 3.1.1 and Cuda 10.1. I am using Windows 10 and Microsoft Visual Studio 2019. I have tried the below-linked example. Such as there is no opencv2/gpu/gpu.hpp. Then I have found a solution, it was changed when the version update above 3. But my problem still consists. There is no opencv2/cudaarithm.hpp file or other cuda files. I have downloaded these files from GitHub. But it does not solve my problem again. This time I have faced up. Could you help me how can I solve it? I need to solve it as soon as possible.

Example: https://opencv.org/cuda/ Found solution: https://stackoverflow.com/questions/1...

Severity    Code    Description Project File    Line    Suppression State Error LNK2019 unresolved external symbol "double __cdecl cv::cuda::threshold(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,double,double,int,class cv::cuda::Stream &)" (?threshold@cuda@cv@@YANAEBV_InputArray@debug_build_guard@2@AEBV_OutputArray@42@NNHAEAVStream@12@@Z) referenced in function main OpencvTest  C:\Users\murat\source\repos\OpencvTest\OpencvTest\OpencvTest.obj    1
edit retag flag offensive close merge delete


cv::debug_build_guard::_InputArray -- you have a DEBUG project, but try to link RELEASE opencv libs

berak gravatar imageberak ( 2019-07-15 07:11:36 -0500 )edit

I tried with Release but it is still same. BTW, I have linked for release opencv_world331.lib and for debug opencv_world331d.lib .

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "double __cdecl cv::cuda::threshold(class cv::_InputArray const &,class cv::_OutputArray const &,double,double,int,class cv::cuda::Stream &)" (?threshold@cuda@cv@@YANAEBV_InputArray@2@AEBV_OutputArray@2@NNHAEAVStream@12@@Z) OpencvTest C:\Users\murat\source\repos\OpencvTest\OpencvTest\OpencvTest.obj 1

MuratHp gravatar imageMuratHp ( 2019-07-15 07:17:17 -0500 )edit