warning: field of class type without a DLL interface used in a class with a DLL interface
I have this error message warning: field of class type without a DLL interface used in a class with a DLL interface I have installed CUDA and tested it out on my laptop already. Why is opencv generating such warning? How to fix this?
where and how exactly do you get that error ?
can you give us more "context", please ?
When building ALL_BUILD in Visual Studio 2017. I added in WITH_CUDA Option
opencv version ? exact error msg & context ?
I have ignored this warning without any problems for years. See this post from 2016.
theres no error, but the thing is i need to use cuda because i am installing opencv for use of darknet to train model. I need to use cuda to train
opencv version is 4.2.0. exact error :warning: field of class type without a DLL interface used in a class with a DLL interface
i rebuilt it again and get the same error again.The build is successful but the thing is my cuda cant be used. not connected to my opencv.
the full error is D:/OpenCV/opencv-4.2.0/modules/core/include\opencv2/core/cuda.hpp(723): warning : field of class type without a DLL interface used in a class with a DLL interface
The error has nothing to do with CUDA working or not (at least in my experience). Can you include your output from opencv_version_win32.exe and opencv_test_cudaarithm.exe and explain what you mean by "my cuda cant be used"?