Skip to content

cc1plus: error: unrecognized command line option "-std=c++11" #1

@nikhil791

Description

@nikhil791

Hi,

I am trying to install deepdetect from "https://deepdetect.com/overview/installing/". I am following allthe steps.

output of my cmake is:

[cascade@datanode2 build]$ cmake ..
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- filesystem
-- thread
-- system
-- iostreams
-- OpenCV 2 (2.4.11) found (/usr/local/share/OpenCV)
-- Configuring customized caffe
-- Build Tests : OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cascade/nikhil/DD/deepdetect

Output of "make" command is:
cc1plus: error: unrecognized command line option "-std=c++11"
make[2]: *** [src/CMakeFiles/ddetect.dir/deepdetect.cc.o] Error 1
make[1]: *** [src/CMakeFiles/ddetect.dir/all] Error 2
make: *** [all] Error 2

Output of "gcc --version"

[root@datanode2 lib]# gcc --version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
I have installed below package by yum:
devtoolset-2-gcc.x86_64 4.8.2-15.1.el6 @slc6-devtoolset

Output of "yum info gcc":

Installed Packages
Name : gcc
Arch : x86_64
Version : 4.4.7
Release : 18.el6
Size : 19 M
Repo : installed
From repo : base
Summary : Various compilers (C, C++, Objective-C, Java, ...)
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description : The gcc package contains the GNU Compiler Collection version 4.4.
: You'll need this package in order to compile C code.

can you help me why I am getting this error. Default gcc package was gcc4.4.7. After that I installed gcc4.8.2 then also I am getting this error..

Any help would be appreciated..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions