GNOME Bugzilla – Bug 776016
add -std=c++11 to CXXFLAGS
Last modified: 2018-11-03 11:52:16 UTC
This is needed for the Qt example
Confirmed, yes. But only when compiling with clang apparently.
because new versions of g++ use -std=gnu++11 (or gnu++14 ?) by default
Maybe we can just change it to not use newer C++ features, if there are not that many. Otherwise, can we just use --std=c++11 unconditionally or do we need to use something different for other compilers. Are there any C++11 compilers other than clang and gcc. And MSVC which uses a different build system so doesn't matter here.
As I understand it it's Qt that requires c++11 features, not our code (but didn't check). Maybe we can just check and disable the example if the compiler doesn't support it out of the box.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/316.