[Gambas-bugtracker] Bug #2473: gambas PDF component needs to be built with C++17 for poppler 22
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Mon Feb 7 20:32:13 CET 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2473&from=L21haW4-
Jeremy BICHA reported a new bug.
Summary
-------
gambas PDF component needs to be built with C++17 for poppler 22
Type : Bug
Priority : Medium
Gambas version : Master
Product : Pdf component
Description
-----------
poppler 22 now requires C++ 17 to build.
Here's a basic patch to do that.
+ gb.pdf/src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gb.pdf/src/Makefile.am b/gb.pdf/src/Makefile.am
+index eda3f0f..7ab0287 100644
+--- a/gb.pdf/src/Makefile.am
++++ b/gb.pdf/src/Makefile.am
+@@ -5,7 +5,7 @@ gblib_LTLIBRARIES = gb.pdf.la
+
+ gb_pdf_la_LIBADD = @POPPLER_LIB@
+ gb_pdf_la_LDFLAGS = -module @LD_FLAGS@ @POPPLER_LDFLAGS@
+-gb_pdf_la_CXXFLAGS = $(AM_CXXFLAGS) $(GB_CXXFLAGS_STD_CPP11)
++gb_pdf_la_CXXFLAGS = $(AM_CXXFLAGS) -std=c++17
+ gb_pdf_la_CPPFLAGS = @POPPLER_INC@
+
+ gb_pdf_la_SOURCES = main.h main.cpp \
System information
------------------
Ubuntu 22.04 Alpha
poppler 22.02.0
More information about the Bugtracker
mailing list