yolov5_caffe icon indicating copy to clipboard operation
yolov5_caffe copied to clipboard

The problem about C++11 when make all -j8

Open cqchenqianqc opened this issue 3 years ago • 2 comments

when I make all -j8,the problem as: tools/caffe_yolov5s.cpp:246:5: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] Net caffe_net(prototxt_path, caffe::TEST, 0, nullptr); ^ tools/caffe_yolov5s.cpp: In function 'std::vector<Anchor> initAnchors()': tools/caffe_yolov5s.cpp:62:13: error: 'class std::vector<Anchor>' has no member named 'emplace_back' anchors.emplace_back(anchor);

ubuntu:18.04 cuda:10.0 cudnn:7.6.5 caffe: 1.0 OpenCV:3.4.2 Anaconda3:5.2.0

cqchenqianqc avatar Mar 09 '21 08:03 cqchenqianqc

i have met this problem as well , have you solved it?

jhgfkdj avatar Feb 10 '23 15:02 jhgfkdj

when I make all -j8,the problem as: tools/caffe_yolov5s.cpp:246:5: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] Net caffe_net(prototxt_path, caffe::TEST, 0, nullptr); ^ tools/caffe_yolov5s.cpp: In function 'std::vector initAnchors()': tools/caffe_yolov5s.cpp:62:13: error: 'class std::vector' has no member named 'emplace_back' anchors.emplace_back(anchor);

ubuntu:18.04 cuda:10.0 cudnn:7.6.5 caffe: 1.0 OpenCV:3.4.2 Anaconda3:5.2.0

I also met this problem. Has it been solved

xinxin12345 avatar Jun 05 '23 03:06 xinxin12345