Community
cancel
Showing results for 
Search instead for 
Did you mean: 
liu__zhiqi
Beginner
185 Views

many warning messages when compiling with Visual Studio 2015

 

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
185 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 
 

185 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-doe...

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.