Ask Your Question

Revision history [back]

Unresolved External Symbol error OpenCV Cuda

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/19368244/compiling-error-cvgpu

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