Hi all, > Mattia Rizzolo wrote on 31 July 2017 at 16:38: > > cppunit 1.14 requires C++11, causing PoDoFo build (when built with the > tests enabled) to fail with > > [ 60%] Building CXX object > test/unit/CMakeFiles/podofo-test.dir/ColorTest.cpp.o ... command line containing -std=c++98 option snipped ... > 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, ... rest of include chain snipped ... > /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. ... snip ... > > TTBOMK the only solution is to build with c++11, but is PoDoFo ready > for it? Why is CMakeLists.txt injecting -std=c++98?
TTBOMK C++98 was forced before svn r1826 (committed by zyx on February 26, 2017: "Do not force c++98 standard for GNUCXX compiler"), i.e. after version 0.9.5 was released, because PoDoFo supported compilers as old as MS Visual C++ 6 so this was intended to prevent introducing changes not supported by those. IDK what's currently supported, any info, please? There's a mailing list post [1] about the change which doesn't give that info: "Re: [Podofo-users] 0.9.5 regression, pdfImage.GetObject()->GetDictionary() throws exception". Best regards, Matthew Brincke [1] https://sourceforge.net/p/podofo/mailman/message/35689838/ ------------------------------------------------------------------------------ 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