I'm trying to compile the package poppler (extracted from their git repository afew days ago).
Code: Select all
rumba-jj) make/force pdfdetach.obj
define goo [-.goo]
define fofi [-.fofi]
define splash [-.splash]
define poppler [-.poppler]
cxx /name=(as_is,short)/stan=cxx14/include=([],[-],[-.poppler],[-.goo]) /define=
(__HAVE_CONFIG=1,VMS=1)/point=64=argv /warn=(noinfo,disable=("return-type")) p
dfdetach.cc
In file included from $DISK1:[JOUKJ.public.poppler.poppler_2023-07-17.poppler.ut
ils]pdfdetach.cc;1:37:
In file included from [-.POPPLER]PDFDoc.h:61:
In file included from ../poppler/Catalog.h:47:
../poppler/Link.h:90:82: error: no template named 'optional' in namespace 'std'
static std::unique_ptr<LinkAction> parseAction(const Object *obj, const std:
:optional<std::string> &baseURI = {});
~~~~
~^
../poppler/Link.h:96:82: error: no template named 'optional' in namespace 'std'
static std::unique_ptr<LinkAction> parseAction(const Object *obj, const std:
:optional<std::string> &baseURI, std::set<int> *seenNextActions);
~~~~
~^
../poppler/Link.h:246:46: error: no template named 'optional' in namespace 'std'
LinkURI(const Object *uriObj, const std::optional<std::string> &baseURI);
~~~~~^
In file included from $DISK1:[JOUKJ.public.poppler.poppler_2023-07-17.poppler.ut
ils]pdfdetach.cc;1:37:
In file included from [-.POPPLER]PDFDoc.h:61:
../poppler/Catalog.h:136:16: error: no template named 'optional' in namespace 's
td'
const std::optional<std::string> &getBaseURI() const { return baseURI; }
~~~~~^
../poppler/Catalog.h:292:10: error: no template named 'optional' in namespace 's
td'
std::optional<std::string> baseURI; // base URI for URI-type links
~~~~~^
In file included from $DISK1:[JOUKJ.public.poppler.poppler_2023-07-17.poppler.ut
ils]pdfdetach.cc;1:37:
In file included from [-.POPPLER]PDFDoc.h:65:
../poppler/Form.h:313:197: error: no template named 'optional' in namespace 'std
'
bool signDocument(const std::string &filename, const std::string &certNickna
me, const std::string &password, const GooString *reason = nullptr, const GooStr
ing *location = nullptr, const std::optional<GooString> &ownerPassword = {},
~~~~~^
../poppler/Form.h:314:34: error: no template named 'optional' in namespace 'std'
const std::optional<GooString> &userPassword = {});
~~~~~^
../poppler/Form.h:318:48: error: no template named 'optional' in namespace 'std'
const std::optional<GooString> &ownerPasswor
d = {}, const std::optional<GooString> &userPassword = {}, const GooString &sign
atureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {},
~~~~~^
../poppler/Form.h:318:100: error: no template named 'optional' in namespace 'std
'
const std::optional<GooString> &ownerPasswor
d = {}, const std::optional<GooString> &userPassword = {}, const GooString &sign
atureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {},
~~~~~^
../poppler/Form.h:324:10: error: no template named 'optional' in namespace 'std'
std::optional<GooString> getCheckedSignature(Goffset *checkedFileSize);
~~~~~^
../poppler/Form.h:330:114: error: no template named 'optional' in namespace 'std
'
bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objSt
art, Goffset *objEnd, const std::optional<GooString> &ownerPassword, const std::
optional<GooString> &userPassword);
~~~~~^
../poppler/Form.h:330:161: error: no template named 'optional' in namespace 'std
'
bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objSt
art, Goffset *objEnd, const std::optional<GooString> &ownerPassword, const std::
optional<GooString> &userPassword);
~~~~~
^
../poppler/Form.h:617:10: error: no template named 'optional' in namespace 'std'
std::optional<GooString> getCheckedSignature(Goffset *checkedFileSize);
~~~~~^
In file included from $DISK1:[JOUKJ.public.poppler.poppler_2023-07-17.poppler.ut
ils]pdfdetach.cc;1:37:
[-.POPPLER]PDFDoc.h:134:72: error: no template named 'optional' in namespace 'st
d'
explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const std::optional<
GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {
}, void *guiDataA = nullptr,
~~~~~^
[-.POPPLER]PDFDoc.h:134:124: error: no template named 'optional' in namespace 's
td'
explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const std::optional<
GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {
}, void *guiDataA = nullptr,
~~~~~^
[-.POPPLER]PDFDoc.h:141:50: error: no template named 'optional' in namespace 'st
d'
explicit PDFDoc(BaseStream *strA, const std::optional<GooString> &ownerPassw
ord = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nu
llptr, const std::function<void()> &xrefReconstructedCallback = {});
~~~~~^
[-.POPPLER]PDFDoc.h:141:102: error: no template named 'optional' in namespace 's
td'
explicit PDFDoc(BaseStream *strA, const std::optional<GooString> &ownerPassw
ord = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nu
llptr, const std::function<void()> &xrefReconstructedCallback = {});
~~~~~^
[-.POPPLER]PDFDoc.h:344:133: error: no template named 'optional' in namespace 's
td'
const GooString *reason = nullptr, const GooString *location = nul
lptr, const std::string &imagePath = "", const std::optional<GooString> &ownerPa
ssword = {}, const std::optional<GooString> &userPassword = {});
~~~~~^
[-.POPPLER]PDFDoc.h:344:185: error: no template named 'optional' in namespace 's
td'
const GooString *reason = nullptr, const GooString *location = nul
lptr, const std::string &imagePath = "", const std::optional<GooString> &ownerPa
ssword = {}, const std::optional<GooString> &userPassword = {});
~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
%MMS-F-ABORT, For target pdfdetach.obj, CLI returned abort status: %X15F61262.
with /stan=cxx17 It compiles without errors:
rumba-jj) make/force pdfdetach.obj
define goo [-.goo]
define fofi [-.fofi]
define splash [-.splash]
define poppler [-.poppler]
cxx /name=(as_is,short)/stan=cxx17/include=([],[-],[-.poppler],[-.goo]) /define=
(__HAVE_CONFIG=1,VMS=1)/point=64=argv /warn=(noinfo,disable=("return-type")) p
dfdetach.cc
rumba-jj)