我是靠谱客的博主 老迟到冬日,这篇文章主要介绍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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(141)

评论列表共有 0 条评论

立即
投稿
返回
顶部