【TensorRT】引用了NvInferRuntimeCommon.h仍然报找不到ILogger

如果编译遇到
error: ‘ILogger’ in namespace ‘nvinfer1’ does not name a type
或者
error: ‘nvinfer1::ILogger’ has not been declared

可能需要显式的添加
#include "NvInfer.h"
即只include NvInferRuntimeCommon.h是不够的。

你可能感兴趣的:(人工智能)