Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Manual intervention via makeflags necessary to enable C++11 #88

@nooitaf

Description

@nooitaf

Thanks for this package :)

i got this error while compiling and did not know how to solve it at first..

$ cmake -DCEF_ROOT_DIR=../../cef_binary_3.3325.1750.gaabe4c4_linux64_minimal ..
[ ...]
[ 36%] Building CXX object CMakeFiles/browser_shared.dir/src/browser/browser-app.cpp.o
In file included from /usr/include/c++/5/unordered_map:35:0,
                 from /home/nooitaf/repos/obs-linuxbrowser/src/browser/browser-app.cpp:27:
/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 \
  ^

I just solved it by adding -DCMAKE_CXX_FLAGS="-std=c++11" to the cmake command:

cmake -DCMAKE_CXX_FLAGS="-std=c++11" -DCEF_ROOT_DIR=CEF_ROOT_PATH ..

Builds fine now :)

Maybe this could be added to the docs for noobs like me who dont compile every day :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions