Community
cancel
Showing results for 
Search instead for 
Did you mean: 
at93
Beginner
392 Views

C++/CLI Compile Error When NGraph is used in 2020.2

Hi Everyone,

I've created  an inference wrapper class for .net. This has worked well in the past versions until 2020.2 released today. Some of the APIs have been moved to nGraph. I've modified my code to reflect the API change. When I compiled I encountered the errors below:  My question is. is std::mutex (within ngraph) not compatible with /clr ?  If so, is there a work around?

1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\factory.hpp(27,21): error C2039: 'mutex': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\mutex(30): message : see declaration of 'std'
1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\factory.hpp(27,26): error C2143: syntax error: missing ';' before '&'
1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\factory.hpp(27,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\factory.hpp(27,48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\runtime\backend.hpp(183,17): error C2039: 'mutex': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\mutex(30): message : see declaration of 'std'
1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\runtime\backend.hpp(183,28): error C3646: 'm_mtx': unknown override specifier
1>C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\ngraph\include\ngraph\runtime\backend.hpp(183,28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
 

 

0 Kudos
2 Replies
Sahira_Intel
Moderator
392 Views

Hi,

I apologize for the delay in response. This issue is still under review with the Engineering Team. It seems to be a bug and has not been resolved yet.

I will keep you updated on the status of this bug. 

Best Regards,
Sahira 

BrianK
Beginner
165 Views

I'm running into the same issue with upgrading a .NET wrapper to use the 2021.3 release.  Has there been any movement or a workaround on this?

Reply