You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to build onnx lib using Mingw because windows.h defines a macro named OPTIONAL which is used as variable name in the onnx lib. This leads to a compiler error.
System information
Windows Server 2022
ONNX 1.72, 1.16.2
mingw 13.2
CMake 3.30.5
Reproduction instructions
Try to build onnx static lib using cmake and windows
@justinchuby I wonder if an additional test can be added to the CI pipeline to test whether building with mingw works. It could only run once a week, for example.
@justinchuby I wonder if an additional test can be added to the CI pipeline to test whether building with mingw works. It could only run once a week, for example.
We may do that if anyone wants to contribute? Though I’m not sure how much effort is required to maintain it
Bug Report
Describe the bug
It is not possible to build onnx lib using Mingw because windows.h defines a macro named OPTIONAL which is used as variable name in the onnx lib. This leads to a compiler error.
System information
Reproduction instructions
Try to build onnx static lib using cmake and windows
Expected behavior
Build ONNX library successfully.
Notes
Relates to #1065
Relates to conan-io/conan-center-index#25468
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: