On 2023-03-09 21:13:02 +0100, Andreas Tille wrote: > Hi, > > Am Wed, Mar 08, 2023 at 09:30:38PM +0100 schrieb Lucas Nussbaum: > > > /usr/include/qpdf/QPDF.hh:1569:36: error: ‘std::string_view’ has not been > > > declared > > > 1569 | void linearizationWarning(std::string_view); > > > | ^~~~~~~~~~~ > > > In file included from bindings.cpp:3: > > > /usr/include/qpdf/QPDFWriter.hh:557:27: error: ‘std::string_view’ has not > > > been declared > > > 557 | void writeString(std::string_view str); > > > | ^~~~~~~~~~~ > > > /usr/include/qpdf/QPDFWriter.hh:559:30: error: ‘std::string_view’ has not > > > been declared > > > 559 | void writeStringQDF(std::string_view str); > > > | ^~~~~~~~~~~ > > > /usr/include/qpdf/QPDFWriter.hh:560:32: error: ‘std::string_view’ has not > > > been declared > > > 560 | void writeStringNoQDF(std::string_view str); > > > | ^~~~~~~~~~~ > > > make[1]: *** [/usr/lib/R/etc/Makeconf:178: bindings.o] Error 1 > > This error occures due to the upgrade of qpdf from 11.2.0 to 11.3.0. > r-cran-qpdf ships with a code copy of 11.2.0 which was removed in favour > of dynamic linking. The only way I see to fix this bug while keeping > the same r-cran-qpdf version is to keep the original upstream tarball > and link against the code copy. > > What do you think?
std::string_view was introduced in C++17, but r-cran-qpdf is building with C++11. Have you tried bumping the C++ version? Cheers -- Sebastian Ramacher