Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cqchenqianqc opened this issue Mar 9, 2021 · 2 comments
Open

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

cqchenqianqc opened this issue Mar 9, 2021 · 2 comments

Comments

@cqchenqianqc
Copy link

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

@jhgfkdj
Copy link

jhgfkdj commented Feb 10, 2023

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

@xinxin12345
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants