我是靠谱客的博主 老迟到冬日,最近开发中收集的这篇文章主要介绍Eclipse - ISO C++11 (-std=c++0x)
Eclipse - ISO C++11 (-std=c++0x)
,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
Eclipse - ISO C++11 (-std=c++0x)
1. Build Project
......
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
......
2. ISO C++11 (-std=c++0x)
webcam_NCS -> Properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Dialect
Language standard: ISO C++11 (-std=c++0x)
3. webcam_NCS -> Build Project
4. compile.sh
#!/bin/bash
VIDEOIO=`pkg-config --libs opencv | grep "lopencv_videoio"`
if [ "$VIDEOIO" == "" ]
then
echo "no videoio library"
g++ -std=c++11 cpp/gender_age_lbp.cpp cpp/fp16.c -o cpp/gender_age_lbp -L/usr/local/lib -lmvnc -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_objdetect
else
echo "found videoio library"
g++ -std=c++11 cpp/gender_age_lbp.cpp cpp/fp16.c -o cpp/gender_age_lbp -L/usr/local/lib -lmvnc -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_objdetect -lopencv_videoio
fi
References
https://yongqiang.blog.csdn.net/
最后
以上就是老迟到冬日为你收集整理的Eclipse - ISO C++11 (-std=c++0x) Eclipse - ISO C++11 (-std=c++0x) 的全部内容,希望文章能够帮你解决Eclipse - ISO C++11 (-std=c++0x) Eclipse - ISO C++11 (-std=c++0x) 所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复