#include <QApplication> failes:
As stated on https://wiki.qt.io/New_Features_in_Qt_5.7In file included from qt4.cpp:29:
In file included from /usr/include/qt5/QtWidgets/QApplication:1:
In file included from /usr/include/qt5/QtWidgets/qapplication.h:43:
In file included from /usr/include/qt5/QtCore/qcoreapplication.h:43:
In file included from /usr/include/qt5/QtCore/qglobal.h:1140:
In file included from /usr/include/qt5/QtCore/qatomic.h:46:
/usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: "Qt requires C++11 support"
# error "Qt requires C++11 support"
So I have created a temp env file for vlc package and added --std=c++11 thereNew Features in Qt 5.7
C++11 Support Required from the compiler
Qt has enabled usage of C++11 in Qt applications for a long time, but with Qt 5.7 we are also enabling use of C++11 in the Qt modules. Therefore Qt 5.7 requires C++11 support from the compiler, and has removed support from older compilers not providing adequate C++11 support.
Now Clang-3.8 gives mecat /etc/portage/env/media-video/vlc
CXXFLAGS="${CFLAGS} --std=c++11"
After fixing this type of errors (adding space in front PRId64) others popped up.demux/mkv/mkv.cpp:463:65: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
msg_Dbg( p_demux, "lengthy way of seeking for pos:%"PRId64, i_pos );
GCC-4.9.3 gives me
Has anyone built vlc with c++11 on?In file included from /usr/include/qt5/QtCore/qatomic_cxx11.h:45:0,
from /usr/include/qt5/QtCore/qbasicatomic.h:53,
from /usr/include/qt5/QtCore/qatomic.h:46,
from /usr/include/qt5/QtCore/qglobal.h:1140,
from /usr/include/qt5/QtCore/qchar.h:43,
from /usr/include/qt5/QtCore/qstring.h:48,
from /usr/include/qt5/QtCore/QString:1,
from qt4.hpp:37,
from main_interface.cpp:30:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/atomic:866:25: error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4
memory_order __m2) noexcept