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.

compilation errors with Visual Studio 2015

liu__zhiqi
Beginner
1,757 Views

 

I encountered the following errors when I tried to integrate Vino into my existing project:

 Severity Code Description Project File Line Suppression State
Error C2664 'HMODULE LoadLibraryW(LPCWSTR)': cannot convert argument 1 from 'const char *' to 'LPCWSTR' OpenVino_test c:\zhiqi_work\intel_openvi\computer_vision_sdk_2018.1.265\deployment_tools\inference_engine\include\details\os\win_shared_object_loader.h 46 


 I have set up proper include directories and import libraries. Why would the above issue show up?

 

 

 

 

 

0 Kudos
1 Solution
Monique_J_Intel
Employee
1,757 Views

Hi Zhiqi,

If you could try going to the Properties for your Project and under Configuration Properties/General, change the Character Set to "Not Set". This way, the compiler will not assume that you want Unicode characters, which are selected by default this may solve the issue. Let me know if that helps.

Kind Regards,

Monique Jones

View solution in original post

0 Kudos
2 Replies
Monique_J_Intel
Employee
1,758 Views

Hi Zhiqi,

If you could try going to the Properties for your Project and under Configuration Properties/General, change the Character Set to "Not Set". This way, the compiler will not assume that you want Unicode characters, which are selected by default this may solve the issue. Let me know if that helps.

Kind Regards,

Monique Jones

0 Kudos
liu__zhiqi
Beginner
1,757 Views

yes, Unicode is indeed the issue. Thank you!

0 Kudos
Reply