Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

many warning messages when compiling with Visual Studio 2015

liu__zhiqi
Beginner
980 Views

 

Here's one example:


Warning C4251 'InferenceEngine::BlockingDesc::order': class 'std::vector<std::size_t,std::allocator<std::_Ty>>' needs to have dll-interface to be used by clients of class 'InferenceEngine::BlockingDesc' cpu_extension c:\zhiqi_work\intel_openvi\computer_vision_sdk_2018.1.265\deployment_tools\inference_engine\include\ie_layouts.h 138 
 

Is this severe? How can I correct this?

 

 

 

0 Kudos
2 Replies
liu__zhiqi
Beginner
980 Views

Severity Code Description Project File Line Suppression State
Warning C4251 'InferenceEngine::TensorDesc::precision': class 'InferenceEngine::Precision' needs to have dll-interface to be used by clients of class 'InferenceEngine::TensorDesc' OpenVino_test c:\zhiqi_work\intel_openvi\computer_vision_sdk_2018.1.265\deployment_tools\inference_engine\include\ie_layouts.h 300 
 

0 Kudos
Seunghyuk_P_Intel
980 Views

 

Hi liu zhiqi,

Please take a look at the details about C4251 warning from here.

* https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251

* https://social.msdn.microsoft.com/Forums/vstudio/en-US/fcb4a74e-c6d4-4a20-94f9-1ad1669b429d/what-does-warning-c4251-class-needs-to-have-dll-interface-to-be-used-by-clients-of-class-mean?forum=vcgeneral

It's not critical but I agree it's uncomfortable to see warnings.

We will work on trying to avoid this warning.

You can disable this warning message for now.

You will find how to disable this warning from the links.

Regards,

Peter.

 

0 Kudos
Reply