一直提示各种各样的错误,例如
error C2059: syntax error: '='
https://github.com/onnx/onnx/issues/4109
查了好久都差不到,大意就是optional冲突,看到大佬再末尾提到了protobuf版本的问题,然后我在cmd编译的时候,发现我自己电脑安装了protobuf-compiler(环境变量),而且是很早版本的 。
一、删掉电脑的protobuf及环境变量
二、将下载onnx代码
三、编译
一直提示各种各样的错误,例如
error C2059: syntax error: '='
https://github.com/onnx/onnx/issues/4109
查了好久都差不到,大意就是optional冲突,看到大佬再末尾提到了protobuf版本的问题,然后我在cmd编译的时候,发现我自己电脑安装了protobuf-compiler(环境变量),而且是很早版本的 。
一、删掉电脑的protobuf及环境变量
二、将下载onnx代码
三、编译