DNNLibrary icon indicating copy to clipboard operation
DNNLibrary copied to clipboard

error: use of undeclared identifier 'ONNX_NAMESPACE'

Open yurivict opened this issue 4 years ago • 3 comments

Here https://github.com/JDAI-CV/DNNLibrary/blob/master/include/tools/onnx2daq/OnnxConverter.h#L57 you use ONNX_NAMESPACE but the included header onnx/onnx_pb.h doesn't define this namespace.

yurivict avatar Oct 25 '19 18:10 yurivict

Are you using cmake? :) ONNX_NAMESPACE is defined in cmake via compile definitions

daquexian avatar Oct 25 '19 19:10 daquexian

Yes, I am using cmake.

yurivict avatar Oct 25 '19 20:10 yurivict

could you please provide your system info like OS version, cmake version and the commands you used for building onnx2dnn?

daquexian avatar Oct 25 '19 22:10 daquexian