我正在尝试编译存在的CPP文件here,它给了我以下错误。我是新来的。任何帮助将不胜感激。另外,如果我做错了,任何其他编译和运行方式都将很有帮助。
(base) ritika@ritika-HP-Pavilion-Laptop-15-cc1xx:~/Downloads/C4-Real-time-pedestrian-detection-master$ g++ c4-pedestrian-detector.cpp
c4-pedestrian-detector.cpp: In member function ‘bool IntImage<T>::Load(cv::Mat, char)’:
c4-pedestrian-detector.cpp:283:8: error: ‘Show_Detection_Steps’ was not declared in this scope
if(Show_Detection_Steps)
^~~~~~~~~~~~~~~~~~~~
最佳答案
代码确实被破坏了。在声明之前使用Show_Detection_Steps
。
由于实现模板的方法不同,一些编译器使您无法使用它,这可能是作者错过它的原因。但是,按照C++语言,代码已损坏。
您应该使用链接到的GitHub项目页面将此错误报告给作者。
关于c++ - c4-pedestrian-detector.cpp:283:8:错误:未在此范围内声明 ‘Show_Detection_Steps’,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61975715/