Open AloveDL opened 2 years ago
See #1175
I solve this problem. I set the toolchains to the vs environment instead of using the mingw installed.
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
This seems to be due to the fact that the _WIN32 macro has already been defined causing the corresponding macro in the onnxruntime_c_api.h header file to skip the definition. I solved this problem by making sure that the definition appears in the error macro, located around line 41 of the onnxruntime_c_api.h file. Add the missing macro definition under #else as follows: //! @} // SAL2 Definitions
Among them, _Frees_ptropt and _Outptr_result_buffermaybenull(X) are undefined macros that my compiler tells me, and if you are prompted for more undefined macros, try adding them here. With this change, I successfully used the onnxruntime with the mingw730_64 compiler
I solve this problem. I set the toolchains to the vs environment instead of using the mingw installed.
Could you tell me how do that to solve this problem? I Running this env:windows 10+msys2+onnx, how can I set the toolchains to the vs environment ?
This seems to be due to the fact that the _WIN32 macro has already been defined causing the corresponding macro in the onnxruntime_c_api.h header file to skip the definition. I solved this problem by making sure that the definition appears in the error macro, located around line 41 of the onnxruntime_c_api.h file. Add the missing macro definition under #else as follows: //! @} // SAL2 Definitions #ifndef _WIN32 #define In #define _Inz #define _Inopt #define _In_optz #define Out #define Outptr #define _Outopt #define Inout #define _Inoutopt #define _Frees_ptropt #define _Retmaybenull #define _Retnotnull #define _Checkreturn #define _Outptr_resultmaybenull #define _Inreads(X) #define _Inout_updatesall(X) #define _Out_writes_bytesall(X) #define _Out_writesall(X) #define Success(X) #define _Outptr_result_buffermaybenull(X) #define ORT_ALL_ARGS_NONNULL attribute((nonnull)) #else #include
#define ORT_ALL_ARGS_NONNULL #define _Frees_ptropt #define _Outptr_result_buffermaybenull(X) #endif Among them, _Frees_ptropt and _Outptr_result_buffermaybenull(X) are undefined macros that my compiler tells me, and if you are prompted for more undefined macros, try adding them here. With this change, I successfully used the onnxruntime with the mingw730_64 compiler
is there any solution for onnxruntime_cxx_api.h?
====================[ Clean | Debug-MinGW ]===================================== "C:\Program Files\JetBrains\CLion 2020.3\bin\cmake\win\bin\cmake.exe" --build D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\cmake-build-debug-mingw --target clean -- -j 6
Clean finished
====================[ Build | all | Debug-MinGW ]=============================== "C:\Program Files\JetBrains\CLion 2020.3\bin\cmake\win\bin\cmake.exe" --build D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\cmake-build-debug-mingw --target all -- -j 6 Scanning dependencies of target hb_inference_onnx_lib [ 16%] Building CXX object CMakeFiles/hb_inference_onnx_lib.dir/hb_onnx_inference_lib.cpp.obj [ 33%] Building CXX object CMakeFiles/hb_inference_onnx_lib.dir/hb_interface.cpp.obj [ 50%] Building CXX object CMakeFiles/hb_inference_onnx_lib.dir/aes.cpp.obj [ 66%] Building CXX object CMakeFiles/hb_inference_onnx_lib.dir/hb_memory.cpp.obj [ 83%] Building CXX object CMakeFiles/hb_inference_onnx_lib.dir/hb_utils.cpp.obj In file included from D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:16, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_interface.cpp:7: D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declared
define ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:675:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Env); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:675:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Env); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:676:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Status); // nullptr for Status indicates success ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:676:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Status); // nullptr for Status* indicates success ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:677:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MemoryInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:677:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MemoryInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:678:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Session); //Don't call OrtReleaseSession from Dllmain (because session owns a thread pool) ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:678:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Session); //Don't call OrtReleaseSession from Dllmain (because session owns a thread pool) ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:679:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Value); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:679:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Value); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:680:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(RunOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:680:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(RunOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:681:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:681:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:682:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TensorTypeAndShapeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:682:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TensorTypeAndShapeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:683:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SessionOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:683:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SessionOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:684:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(CustomOpDomain); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:684:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(CustomOpDomain); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:748:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MapTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:748:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MapTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:749:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SequenceTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:749:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SequenceTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:783:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ModelMetadata); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:783:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ModelMetadata); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:803:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ThreadingOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:803:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ThreadingOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:812:52: error: '_Outptr_result_buffermaybenull' has not been declared Inout OrtAllocator allocator, _Outptr_result_buffermaybenull(num_keys) char keys, Out int64_t num_keys); ^~~~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:171:67: note: in definition of macro 'ORT_API2_STATUS' _Checkreturn _Retmaybenull OrtStatusPtr(ORT_API_CALL NAME)(__VA_ARGS__) NO_EXCEPTION ORT_MUST_USE_RESULT ^~~D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:812:96: error: expected ',' or '...' before 'char' Inout OrtAllocator allocator, _Outptr_result_buffermaybenull(num_keys) char keys, Out int64_t num_keys); ^~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:171:67: note: in definition of macro 'ORT_API2_STATUS' _Checkreturn _Retmaybenull OrtStatusPtr(ORT_API_CALL NAME)(__VA_ARGS__) NO_EXCEPTION ORT_MUST_USE_RESULT ^~~In file included from D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:16, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:5: D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:675:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Env); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:675:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Env); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:676:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Status); // nullptr for Status indicates success ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:676:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Status); // nullptr for Status* indicates success ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:677:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MemoryInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:677:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MemoryInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:678:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Session); //Don't call OrtReleaseSession from Dllmain (because session owns a thread pool) ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:678:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Session); //Don't call OrtReleaseSession from Dllmain (because session owns a thread pool) ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:679:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Value); ^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:64:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(MemoryInfo);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtCustomOpDomain' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:65:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(CustomOpDomain);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:66:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(Env);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtRunOptions' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:67:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(RunOptions);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:68:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(Session);
^ ' token
~~~~ In file included from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_interface.cpp:7: D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtMemoryInfo)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtMemoryInfo' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtCustomOpDomain~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtEnv)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtEnv' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtRunOptions~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtSession)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtSession' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before 'define ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:679:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(Value); ^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:69:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(SessionOptions);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtTensorTypeAndShapeInfo' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:70:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(TensorTypeAndShapeInfo);
^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtSessionOptions)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtSessionOptions' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtTensorTypeAndShapeInfo~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:680:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(RunOptions); ^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:71:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(TypeInfo);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtValue' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:72:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(Value);
^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtTypeInfo)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtTypeInfo' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtValue~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:680:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(RunOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:681:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TypeInfo); ^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:73:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(ModelMetadata);
^ ' token
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtModelMetadata)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtModelMetadata' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before 'define ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:681:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:682:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TensorTypeAndShapeInfo); ^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:74:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(ThreadingOptions);
^ ' token
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtThreadingOptions)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtThreadingOptions' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before 'define ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:682:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(TensorTypeAndShapeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:683:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SessionOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:683:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SessionOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:684:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(CustomOpDomain); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:684:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(CustomOpDomain); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:748:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MapTypeInfo); ^
~~~~ In file included from D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:377, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_interface.cpp:7: D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In function 'void Ort::ThrowOnError(const OrtApi&, OrtStatus)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h:14:23: error: invalid conversion from 'OrtStatus' to 'int' [-fpermissive] ort.ReleaseStatus(status); ^~D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:748:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(MapTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:749:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SequenceTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:749:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(SequenceTypeInfo); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:783:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ModelMetadata); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:783:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ModelMetadata); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:62: error: '_Frees_ptropt' has not been declareddefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:803:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ThreadingOptions); ^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:177:85: error: expected ',' or '...' before '*' tokendefine ORT_CLASS_RELEASE(X) void(ORT_API_CALL Release##X)(_Frees_ptropt Ort##X input)
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:803:3: note: in expansion of macro 'ORT_CLASS_RELEASE' ORT_CLASS_RELEASE(ThreadingOptions); ^::api.ModelMetadataGetCustomMetadataMapKeys(p, allocator, &out, &num_keys));
^
In file included from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11,
from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:5:
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtMemoryInfo )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtMemoryInfo' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:64:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(MemoryInfo);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:65:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(CustomOpDomain);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtEnv' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:66:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(Env);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:67:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(RunOptions);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtSession' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:68:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(Session);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:69:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(SessionOptions);
^ , const char*) [with T = std::cxx11::basic_string; OrtKernelInfo = OrtKernelInfo]':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxinline.h:526:24: error: invalid conversion from 'OrtStatus*' to 'int' [-fpermissive]
api.ReleaseStatus(status);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:70:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(TensorTypeAndShapeInfo);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtTypeInfo' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:71:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(TypeInfo);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:72:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(Value);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxapi.h:62:77: error: invalid conversion from 'OrtModelMetadata' to 'int' [-fpermissive]
inline void OrtRelease(Ort##NAME ptr) { Global::api .Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:73:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(ModelMetadata);
^::api_.Release##NAME(ptr); }
^~~
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:74:1: note: in expansion of macro 'ORT_DEFINE_RELEASE'
ORT_DEFINE_RELEASE(ThreadingOptions);
^ )':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxinline.h:587:38: error: invalid conversion from 'OrtTensorTypeAndShapeInfo*' to 'int' [-fpermissive]
api.ReleaseTensorTypeAndShapeInfo(input);
^~~~~
In file included from D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:377,
from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11,
from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:5:
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In function 'void Ort::ThrowOnError(const OrtApi&, OrtStatus)':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h:14:23: error: invalid conversion from 'OrtStatus' to 'int' [-fpermissive]
ort.ReleaseStatus(status);
^::api.ModelMetadataGetCustomMetadataMapKeys(p, allocator, &out, &num_keys));
^
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In member function 'T Ort::CustomOpApi::KernelInfoGetAttribute(const OrtKernelInfo , const char*) [with T = std:: cxx11::basic_string; OrtKernelInfo = OrtKernelInfo]':
D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxxinline.h:526:24: error: invalid conversion from 'OrtStatus*' to 'int' [-fpermissive]
api.ReleaseStatus(status);
^
~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:812:52: error: '_Outptr_result_buffermaybenull' has not been declared Inout OrtAllocator allocator, _Outptr_result_buffermaybenull(num_keys) char keys, Out int64_t num_keys); ^~~~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:171:67: note: in definition of macro 'ORT_API2_STATUS' _Checkreturn _Retmaybenull OrtStatusPtr(ORT_API_CALL NAME)(__VA_ARGS__) NO_EXCEPTION ORT_MUST_USE_RESULT ^~~D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:812:96: error: expected ',' or '...' before 'char' Inout OrtAllocator allocator, _Outptr_result_buffermaybenull(num_keys) char keys, Out int64_t num_keys); ^~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_c_api.h:171:67: note: in definition of macro 'ORT_API2_STATUS' _Checkreturn _Retmaybenull OrtStatusPtr(ORT_API_CALL NAME)(VA_ARGS) NO_EXCEPTION ORT_MUST_USE_RESULT ^~~In file included from D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:377, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_interface.cpp:7: D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In member function 'char Ort::ModelMetadata::GetCustomMetadataMapKeys(OrtAllocator, int64_t&) const': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h:329:103: error: cannot convert 'char' to 'int' in argument passing ThrowOnError(Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtCustomOpDomain)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtCustomOpDomain' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtEnv~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtRunOptions)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtRunOptions' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtSession~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtSessionOptions)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtSessionOptions' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In member function 'T Ort::CustomOpApi::KernelInfoGetAttribute(const OrtKernelInfo~D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtTensorTypeAndShapeInfo)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtTensorTypeAndShapeInfo' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtTypeInfo~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtValue)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtValue' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtModelMetadata~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h: In function 'void Ort::OrtRelease(OrtThreadingOptions)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:62:77: error: invalid conversion from 'OrtThreadingOptions' to 'int' [-fpermissive] inline void OrtRelease(Ort##NAME ptr) { Global~~~~~ D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In member function 'void Ort::CustomOpApi::ReleaseTensorTypeAndShapeInfo(OrtTensorTypeAndShapeInfo~In file included from D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_api.h:377, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.h:11, from D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:5: D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In member function 'char Ort::ModelMetadata::GetCustomMetadataMapKeys(OrtAllocator, int64_t&) const': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h:329:103: error: cannot convert 'char' to 'int' in argument passing ThrowOnError(Global~D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h: In member function 'void Ort::CustomOpApi::ReleaseTensorTypeAndShapeInfo(OrtTensorTypeAndShapeInfo)': D:/company/pytorch-onnx/pytorch-onnx-linux/hb_inference_onnx_lib/include/onnxruntime/onnxruntime_cxx_inline.h:587:38: error: invalid conversion from 'OrtTensorTypeAndShapeInfo' to 'int' [-fpermissive] api_.ReleaseTensorTypeAndShapeInfo(input); ^~~~~ D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp: In member function 'result_t OnnxRuntimeModelHandle::hb_onnxruntime_release_model()': D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:89:32: error: invalid conversion from 'OrtSession' to 'int' [-fpermissive] g_pOrt->ReleaseSession(m_pSession); ^~~~~~ D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:94:39: error: invalid conversion from 'OrtSessionOptions' to 'int' [-fpermissive] g_pOrt->ReleaseSessionOptions(m_pSessionOptions); ^~~~~ D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:100:28: error: invalid conversion from 'OrtEnv' to 'int' [-fpermissive] g_pOrt->ReleaseEnv(g_pEnv); ^~D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp: In member function 'void OnnxRuntimeModelHandle::CheckStatus(OrtStatus)': D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:113:31: error: invalid conversion from 'OrtStatus' to 'int' [-fpermissive] g_pOrt->ReleaseStatus(status); ^~D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp: In member function 'void OnnxRuntimeModelHandle::GetModelInfo()': D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:160:33: error: invalid conversion from 'OrtTypeInfo' to 'int' [-fpermissive] g_pOrt->ReleaseTypeInfo(typeinfo); ^~~~ D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:198:33: error: invalid conversion from 'OrtTypeInfo' to 'int' [-fpermissive] g_pOrt->ReleaseTypeInfo(typeinfo); ^~~~ D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp: In member function 'result_t OnnxRuntimeModelHandle::hb_onnxruntime_inference_tensors()': D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:265:35: error: invalid conversion from 'OrtMemoryInfo' to 'int' [-fpermissive] g_pOrt->ReleaseMemoryInfo(memory_info); ^~~D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:318:34: error: invalid conversion from 'OrtValue*' to 'int' [-fpermissive] g_pOrt->ReleaseValue(tensor); ^~mingw32-make.exe[2]: [CMakeFiles\hb_inference_onnx_lib.dir\build.make:97: CMakeFiles/hb_inference_onnx_lib.dir/hb_interface.cpp.obj] Error 1 mingw32-make.exe[2]: Waiting for unfinished jobs.... D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp: In member function 'result_t OnnxRuntimeModelHandle::hb_onnxruntime_open_model()': D:\company\pytorch-onnx\pytorch-onnx-linux\hb_inference_onnx_lib\hb_onnx_inference_lib.cpp:38:33: warning: ignoring return value of function declared with attribute warn_unused_result [-Wunused-result] g_pOrt->SetIntraOpNumThreads(m_pSessionOptions, 1); //insert thread numbers