title: OpenCV Build process warning : field of class type without a DLL interface used in a class with a DLL interface
body: <p>I just installed CUDA 7.0 and generated the <strong>OpenCV</strong> makefiles for <strong>VisualStudio 2013 x64</strong> through CMake. While building in the Debug configuration(and Release too) in VS2013, I have tons of warnings like these and its taking hell longer(to the extent that I had to end process!) then it would normally take without <strong>WITH_CUDA</strong> checked in CMake.<br></p>
  
  <p>I got the following:<br></p>
  
  <pre><code>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(494): warning : field of class type without a DLL interface used in a class with a DLL interface
  </code></pre>
  
  <p>and the following:<br></p>
  
  <pre><code>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/base.hpp(342): warning : function declared with "noreturn" does return
  </code></pre>
  
  <p>What do these warnings mean? How do I resolve the warnings? Is the OpenCV library at fault or it is something I did?<br></p>
  
  <p>There are many of these:<br></p>
  
  <pre><code>C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core.hpp(98): warning : base class dllexport/dllimport specification differs from that of the derived class
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(494): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(530): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  18&gt;  pyr_down.cu
  18&gt;  
  17&gt;  bgfg_gaussmix2.cpp
  17&gt;  bgfg_KNN.cpp
  17&gt;  camshift.cpp
  17&gt;  compat_video.cpp
  17&gt;  ecc.cpp
  17&gt;  kalman.cpp
  17&gt;  lkpyramid.cpp
  17&gt;  optflowgf.cpp
  17&gt;  tvl1flow.cpp
  17&gt;  opencl_kernels_video.cpp
  17&gt;LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_imgproc300d.lib'
  19&gt;------ Build started: Project: opencv_shape, Configuration: Debug x64 ------
  19&gt;  Building Custom Rule C:/opencv-master_2/opencv-master/modules/shape/CMakeLists.txt
  19&gt;  CMake does not need to re-run because C:\opencv-master_2\My_Build\modules\shape\CMakeFiles\generate.stamp is up-to-date.
  19&gt;  opencv_shape_pch.cpp
  19&gt;  aff_trans.cpp
  19&gt;  emdL1.cpp
  19&gt;  haus_dis.cpp
  19&gt;  hist_cost.cpp
  19&gt;  precomp.cpp
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/base.hpp(342): warning : function declared with "noreturn" does return
  13&gt;  
  13&gt;  
  13&gt;  
  19&gt;  sc_dis.cpp
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/types.hpp(482): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/types.hpp(483): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/types.hpp(692): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(229): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(2410): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(2411): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/mat.hpp(3278): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/persistence.hpp(434): warning : field of class type without a DLL interface used in a class with a DLL interface
  19&gt;  tps_trans.cpp
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/persistence.hpp(436): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core.hpp(98): warning : base class dllexport/dllimport specification differs from that of the derived class
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(494): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  13&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/cuda.hpp(530): warning : field of class type without a DLL interface used in a class with a DLL interface
  13&gt;  
  13&gt;  
  13&gt;  
  19&gt;LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_video300d.lib'
  20&gt;------ Build started: Project: opencv_cudabgsegm, Configuration: Debug x64 ------
  20&gt;  Building NVCC (Device) object modules/cudabgsegm/CMakeFiles/cuda_compile.dir/src/cuda/Debug/cuda_compile_generated_mog.cu.obj
  18&gt;C:\opencv-master_2\opencv-master\modules\core\include\opencv2/core/base.hpp(342): warning : function declared with "noreturn" does return
  </code></pre>