cppunit 1.14 requires C++11, cauing PoDoFo build (when built with the
tests enabled) to fail with

[ 60%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/ColorTest.cpp.o
cd /build/1st/libpodofo-0.9.5/obj-arm-linux-gnueabihf/test/unit && /usr/bin/c++ 
  -I/build/1st/libpodofo-0.9.5/obj-arm-linux-gnueabihf 
-I/build/1st/libpodofo-0.9.5 -I/usr/include/arm-linux-gnueabihf 
-I/usr/include/cppunit -I/usr/include/lua5.1 -I/build/1st/libpodofo-0.9.5/src 
-I/usr/include/freetype2 -I/src -I/src/os  -g -O2 -fstack-protector-strong 
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++98 
-Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual -Wwrite-strings 
-Wredundant-decls -Wreorder   -W -g -o 
CMakeFiles/podofo-test.dir/ColorTest.cpp.o -c 
/build/1st/libpodofo-0.9.5/test/unit/ColorTest.cpp
In file included from /usr/include/c++/6/type_traits:35:0,
                 from /usr/include/cppunit/tools/StringHelper.h:7,
                 from /usr/include/cppunit/TestAssert.h:8,
                 from /usr/include/cppunit/TestCase.h:6,
                 from /usr/include/cppunit/TestCaller.h:5,
                 from /usr/include/cppunit/extensions/HelperMacros.h:9,
                 from /build/1st/libpodofo-0.9.5/test/unit/ColorTest.h:24,
                 from /build/1st/libpodofo-0.9.5/test/unit/ColorTest.cpp:21:
/usr/include/c++/6/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 \
  ^~~~~


TTBOMK the only solution is to build with c++11, but is PoDoFo ready
for it?  Why is CMakeLists.txt injecting -std=c++98?

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to