Skip to content

Compilation error "ERROR" redefined #82

@HerGeo

Description

@HerGeo

I tried to compile onnx2c but am getting the following error:

In file included from C:\Arbeit\ONNX2C\onnx2c\src\graph.cc:2:
C:\Arbeit\ONNX2C\onnx2c\src\error.h:4: error: "ERROR" redefined [-Werror]
    4 | #define ERROR(why) do { \
      |
compilation terminated due to -Wfatal-errors.
cc1plus.exe: all warnings being treated as errors

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsproblems related to Windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions