cl myprog.cpp /I /path/to/opencv/includes /L /path/to/opencv/libs opencv_world452.lib
So do I have to write something like this?
cl myprog.cpp /I D:\OpenCV_with_CUDA\build\install\include\opencv2 /L D:\OpenCV_with_CUDA\build\install\x64\vc15\lib opencv_world452.lib
Or do I need to add specific path for the all headers and libs that I use in my C++ source file. Something like this.
cl myprog.cpp /I D:\OpenCV_with_CUDA\build\install\include\opencv2\core D:\OpenCV_with_CUDA\build\install\include\opencv2\core\cuda /L D:\OpenCV_with_CUDA\build\install\x64\vc15\lib\opencv_cudaarithm450.lib D:\OpenCV_with_CUDA\build\install\x64\vc15\lib\opencv_core450.lib D:\OpenCV_with_CUDA\build\install\x64\vc15\lib\opencv_core450d.lib opencv_world452.lib
By the way I don’t have opencv_world452.lib
in my build folders.