Failing build c++11?
./../vsedit/src/preview/preview_dialog.cpp:1272:25: error: no matching function for call to ‘std::list<Frame>::erase(std::list<Frame>::const_iterator&)’ m_framesCache.erase(it);
fails with
Makefile:1080: recipe for target '../../vsedit/generated/obj-release-64bit-gcc/preview_dialog.o' failed make[1]: [../../vsedit/generated/obj-release-64bit-gcc/preview_dialog.o] Error 1 make[1]: Leaving directory '/home/andrew/Documents/vapoursynth-editor/pro/vsedit' Makefile:44: recipe for target 'sub-vsedit-vsedit-pro-make_first' failed make: [sub-vsedit-vsedit-pro-make_first] Error 2
Not sure but I know erase is different in c++11, but I am using a g++ that supports c++11. make with make CC=/usr/bin/gcc-5 did the same thing.
g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-4.8 --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 4.8.5 (SUSE Linux)
QMake version 3.0 Using Qt version 5.6.2 in /usr/lib6
Comments (3)
-
repo owner -
There is a bug in gcc 4.8 in regards to erase http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158, specifically libstdc++ < 4.9. It was fixed in 4.9. Changing default gcc to 5 did not work so I uninstalled everything 4.8 and moved to 4.9 and I no longer have the bug.
-
repo owner - changed status to invalid
libstdc++ < 4.9 bug.
- Log in to comment
Wish I could help you, but that's a very old code, and it has been always compiling right for me. Indeed, erase() only works with const iterators since C++11. But the whole project has been written in C++11 from the very beginning, and the needed flags are set in the project files. The error has to be on your side.