pi@raspberrypi:~/Desktop/distribution $ sudo ./maklinux checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking how to run the C preprocessor... gcc -E checking for function prototypes... yes checking for stddef.h... yes checking for stdlib.h... yes checking for string.h... yes checking for size_t... yes checking for type unsigned char... yes checking for type unsigned short... yes checking for type void... yes checking for working const... yes checking for inline... __inline__ checking for broken incomplete types... ok checking for short external names... ok checking to see if char is signed... no checking to see if right shift is signed... yes checking to see if fopen accepts b spec... yes checking for a BSD compatible install... /usr/bin/install -c checking for ranlib... ranlib checking libjpeg version number... 63 creating ./config.status creating Makefile creating jconfig.h gcc -O2 -I. -c -o jcapimin.o jcapimin.c gcc -O2 -I. -c -o jcapistd.o jcapistd.c gcc -O2 -I. -c -o jctrans.o jctrans.c gcc -O2 -I. -c -o jcparam.o jcparam.c gcc -O2 -I. -c -o jdatadst.o jdatadst.c gcc -O2 -I. -c -o jcinit.o jcinit.c gcc -O2 -I. -c -o jcmaster.o jcmaster.c gcc -O2 -I. -c -o jcmarker.o jcmarker.c gcc -O2 -I. -c -o jcmainct.o jcmainct.c gcc -O2 -I. -c -o jcprepct.o jcprepct.c gcc -O2 -I. -c -o jclossls.o jclossls.c gcc -O2 -I. -c -o jclossy.o jclossy.c gcc -O2 -I. -c -o jccoefct.o jccoefct.c gcc -O2 -I. -c -o jccolor.o jccolor.c gcc -O2 -I. -c -o jcsample.o jcsample.c gcc -O2 -I. -c -o jchuff.o jchuff.c gcc -O2 -I. -c -o jcphuff.o jcphuff.c gcc -O2 -I. -c -o jcshuff.o jcshuff.c gcc -O2 -I. -c -o jclhuff.o jclhuff.c gcc -O2 -I. -c -o jcpred.o jcpred.c gcc -O2 -I. -c -o jcscale.o jcscale.c gcc -O2 -I. -c -o jcdiffct.o jcdiffct.c gcc -O2 -I. -c -o jcdctmgr.o jcdctmgr.c gcc -O2 -I. -c -o jfdctfst.o jfdctfst.c gcc -O2 -I. -c -o jfdctflt.o jfdctflt.c gcc -O2 -I. -c -o jfdctint.o jfdctint.c gcc -O2 -I. -c -o jdapimin.o jdapimin.c gcc -O2 -I. -c -o jdapistd.o jdapistd.c gcc -O2 -I. -c -o jdtrans.o jdtrans.c gcc -O2 -I. -c -o jdatasrc.o jdatasrc.c gcc -O2 -I. -c -o jdmaster.o jdmaster.c gcc -O2 -I. -c -o jdinput.o jdinput.c gcc -O2 -I. -c -o jdmarker.o jdmarker.c gcc -O2 -I. -c -o jdlossls.o jdlossls.c gcc -O2 -I. -c -o jdlossy.o jdlossy.c gcc -O2 -I. -c -o jdhuff.o jdhuff.c gcc -O2 -I. -c -o jdlhuff.o jdlhuff.c gcc -O2 -I. -c -o jdphuff.o jdphuff.c gcc -O2 -I. -c -o jdshuff.o jdshuff.c gcc -O2 -I. -c -o jdpred.o jdpred.c gcc -O2 -I. -c -o jdscale.o jdscale.c gcc -O2 -I. -c -o jddiffct.o jddiffct.c gcc -O2 -I. -c -o jdmainct.o jdmainct.c gcc -O2 -I. -c -o jdcoefct.o jdcoefct.c gcc -O2 -I. -c -o jdpostct.o jdpostct.c gcc -O2 -I. -c -o jddctmgr.o jddctmgr.c gcc -O2 -I. -c -o jidctfst.o jidctfst.c gcc -O2 -I. -c -o jidctflt.o jidctflt.c gcc -O2 -I. -c -o jidctint.o jidctint.c gcc -O2 -I. -c -o jidctred.o jidctred.c gcc -O2 -I. -c -o jdsample.o jdsample.c gcc -O2 -I. -c -o jdcolor.o jdcolor.c gcc -O2 -I. -c -o jquant1.o jquant1.c gcc -O2 -I. -c -o jquant2.o jquant2.c gcc -O2 -I. -c -o jdmerge.o jdmerge.c gcc -O2 -I. -c -o jcomapi.o jcomapi.c gcc -O2 -I. -c -o jcodec.o jcodec.c gcc -O2 -I. -c -o jutils.o jutils.c gcc -O2 -I. -c -o jerror.o jerror.c gcc -O2 -I. -c -o jmemmgr.o jmemmgr.c gcc -O2 -I. -c -o jmemnobs.o jmemnobs.c rm -f libjpeg.a ar rc libjpeg.a jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jclossls.o jclossy.o jccoefct.o jccolor.o jcsample.o jchuff.o jcphuff.o jcshuff.o jclhuff.o jcpred.o jcscale.o jcdiffct.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o jdlossls.o jdlossy.o jdhuff.o jdlhuff.o jdphuff.o jdshuff.o jdpred.o jdscale.o jddiffct.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o jcomapi.o jcodec.o jutils.o jerror.o jmemmgr.o jmemnobs.o ranlib libjpeg.a gcc -O2 -I. -c -o cjpeg.o cjpeg.c gcc -O2 -I. -c -o rdppm.o rdppm.c gcc -O2 -I. -c -o rdgif.o rdgif.c gcc -O2 -I. -c -o rdtarga.o rdtarga.c gcc -O2 -I. -c -o rdrle.o rdrle.c gcc -O2 -I. -c -o rdbmp.o rdbmp.c gcc -O2 -I. -c -o rdswitch.o rdswitch.c gcc -O2 -I. -c -o cdjpeg.o cdjpeg.c gcc -o cjpeg cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o libjpeg.a gcc -O2 -I. -c -o djpeg.o djpeg.c gcc -O2 -I. -c -o wrppm.o wrppm.c gcc -O2 -I. -c -o wrgif.o wrgif.c gcc -O2 -I. -c -o wrtarga.o wrtarga.c gcc -O2 -I. -c -o wrrle.o wrrle.c gcc -O2 -I. -c -o wrbmp.o wrbmp.c gcc -O2 -I. -c -o rdcolmap.o rdcolmap.c gcc -o djpeg djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o cdjpeg.o libjpeg.a gcc -O2 -I. -c -o jpegtran.o jpegtran.c gcc -O2 -I. -c -o transupp.o transupp.c gcc -o jpegtran jpegtran.o rdswitch.o cdjpeg.o transupp.o libjpeg.a gcc -O2 -I. -c -o rdjpgcom.o rdjpgcom.c gcc -o rdjpgcom rdjpgcom.o gcc -O2 -I. -c -o wrjpgcom.o wrjpgcom.c gcc -o wrjpgcom wrjpgcom.o /usr/bin/install -c cjpeg /usr/local/bin/cjpeg /usr/bin/install -c djpeg /usr/local/bin/djpeg /usr/bin/install -c jpegtran /usr/local/bin/jpegtran /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1 /usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1 /usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1 /usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1 /usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1 Please choose DB type 1) mysql 2) postgres 3) sqlite 4) dbase 5) Quit #? 3 In file included from ./src/dgate/charls/interface.cpp:16:0, from ./src/dgate/charls/all.cpp:2: ./src/dgate/charls/header.h:60:7: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr GetCodec(const JlsParameters& info, const JlsCustomParameters&); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:17:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/decoderstrategy.h:36:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] virtual void DecodeScan(std::auto_ptr outputData, const JlsRect& size, ByteStreamInfo* compressedData, bool bCheck) = 0; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:17:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/decoderstrategy.h:310:7: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr _processLine; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:18:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/encoderstrategy.h:44:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] virtual size_t EncodeScan(std::auto_ptr rawData, ByteStreamInfo* compressedData, void* pvoidCompare) = 0; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:18:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/encoderstrategy.h:183:7: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr _qdecoder; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:18:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/encoderstrategy.h:187:7: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr _processLine; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:35:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/scan.h:198:26: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] size_t EncodeScan(std::auto_ptr rawData, ByteStreamInfo* compressedData, void* pvoidCompare); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:35:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/scan.h:199:23: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] void DecodeScan(std::auto_ptr rawData, const JlsRect& size, ByteStreamInfo* compressedData, bool bCompare); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:35:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/scan.h:803:51: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] size_t JlsCodec::EncodeScan(std::auto_ptr processLine, ByteStreamInfo* compressedData, void* pvoidCompare) ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/jpegls.cpp:35:0, from ./src/dgate/charls/all.cpp:3: ./src/dgate/charls/scan.h:825:49: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] void JlsCodec::DecodeScan(std::auto_ptr processLine, const JlsRect& rect, ByteStreamInfo* compressedData, bool bCompare) ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/all.cpp:3:0: ./src/dgate/charls/jpegls.cpp:88:6: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr JlsCodecFactory::GetCodec(const JlsParameters& info, const JlsCustomParameters& presets) ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/all.cpp:3:0: ./src/dgate/charls/jpegls.cpp: In member function ‘std::auto_ptr JlsCodecFactory::GetCodec(const JlsParameters&, const JlsCustomParameters&)’: ./src/dgate/charls/jpegls.cpp:107:14: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] return std::auto_ptr(pstrategy); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/all.cpp:5:0: ./src/dgate/charls/header.cpp: In member function ‘virtual void JpegImageDataSegment::Serialize(JpegStreamWriter&)’: ./src/dgate/charls/header.cpp:69:7: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr qcodec = JlsCodecFactory().GetCodec(info, _info.custom); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/all.cpp:5:0: ./src/dgate/charls/header.cpp:72:48: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] size_t cbyteWritten = qcodec->EncodeScan(std::auto_ptr(processLine), &compressedData, streamWriter._bCompare ? streamWriter.GetPos() : NULL); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/all.cpp:5:0: ./src/dgate/charls/header.cpp: In member function ‘void JpegMarkerReader::Read(ByteStreamInfo)’: ./src/dgate/charls/header.cpp:136:8: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr qcodec = JlsCodecFactory().GetCodec(_info, _info.custom); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from ./src/dgate/charls/all.cpp:5:0: ./src/dgate/charls/header.cpp:138:27: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] qcodec->DecodeScan(std::auto_ptr(processLine), _rect, &_byteStream, _bCompare); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from ./src/dgate/charls/jpegmarker.h:7, from ./src/dgate/charls/header.h:9, from ./src/dgate/charls/interface.cpp:16, from ./src/dgate/charls/all.cpp:2: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2 min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ In file included from ./src/dgate/src/total.cpp:116:0: ./src/dgate/dicomlib/qrsop.cxx: In member function ‘BOOL StandardRetrieve::Read(PDU_Service*, DICOMCommandObject*)’: ./src/dgate/dicomlib/qrsop.cxx:314:53: error: ‘min’ was not declared in this scope 0xff00, min(ADDO.GetSize() - Index - 1, 65535), ^ In file included from ./src/dgate/src/total.cpp:142:0: /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’ min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:243:5: error: ‘std::min’ declared as an ‘inline’ variable min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ /usr/include/c++/6/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’ if (__comp(__b, __a)) ^~ /usr/include/c++/6/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’ /usr/include/c++/6/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’ /usr/include/c++/6/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’ return __a; ^~~~~~ /usr/include/c++/6/bits/stl_algobase.h:315:38: error: ‘random_access_iterator_tag’ was not declared in this scope struct __copy_move ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:315:38: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:315:64: error: template argument 3 is invalid struct __copy_move ^ /usr/include/c++/6/bits/stl_algobase.h:334:37: error: ‘random_access_iterator_tag’ was not declared in this scope struct __copy_move ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:334:37: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:334:63: error: template argument 3 is invalid struct __copy_move ^ /usr/include/c++/6/bits/stl_algobase.h:353:39: error: ‘random_access_iterator_tag’ was not declared in this scope struct __copy_move<_IsMove, true, random_access_iterator_tag> ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:353:39: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:353:65: error: template argument 3 is invalid struct __copy_move<_IsMove, true, random_access_iterator_tag> ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI __copy_move_a(_II, _II, _OI)’: /usr/include/c++/6/bits/stl_algobase.h:377:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II>::value_type _ValueTypeI; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:377:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II>::value_type _ValueTypeI; ^ /usr/include/c++/6/bits/stl_algobase.h:378:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_OI>::value_type _ValueTypeO; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:378:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_OI>::value_type _ValueTypeO; ^ /usr/include/c++/6/bits/stl_algobase.h:379:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II>::iterator_category _Category; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:379:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II>::iterator_category _Category; ^ /usr/include/c++/6/bits/stl_algobase.h:380:43: error: ‘_ValueTypeI’ does not name a type const bool __simple = (__is_trivial(_ValueTypeI) ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:381:26: error: ‘__is_pointer’ was not declared in this scope && __is_pointer<_II>::__value ^~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:381:26: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:311:12: note: ‘std::__is_pointer’ struct __is_pointer ^~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:381:42: error: expected primary-expression before ‘>’ token && __is_pointer<_II>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:381:43: error: ‘::__value’ has not been declared && __is_pointer<_II>::__value ^~ /usr/include/c++/6/bits/stl_algobase.h:382:42: error: expected primary-expression before ‘>’ token && __is_pointer<_OI>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:382:43: error: ‘::__value’ has not been declared && __is_pointer<_OI>::__value ^~ /usr/include/c++/6/bits/stl_algobase.h:383:12: error: ‘__are_same’ was not declared in this scope && __are_same<_ValueTypeI, _ValueTypeO>::__value); ^~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:383:12: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:95:12: note: ‘std::__are_same’ struct __are_same ^~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:383:23: error: ‘_ValueTypeI’ was not declared in this scope && __are_same<_ValueTypeI, _ValueTypeO>::__value); ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:385:14: error: ‘__copy_move’ is not a member of ‘std’ return std::__copy_move<_IsMove, __simple, ^~~ /usr/include/c++/6/bits/stl_algobase.h:385:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:287:12: note: ‘__copy_move’ struct __copy_move ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:386:24: error: ‘_Category’ was not declared in this scope _Category>::__copy_m(__first, __last, __result); ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:386:34: error: ‘::__copy_m’ has not been declared _Category>::__copy_m(__first, __last, __result); ^~ /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:401:37: error: ‘__is_char’ was not declared in this scope typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:401:37: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:344:12: note: ‘std::__is_char’ struct __is_char ^~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:401:53: error: wrong number of template arguments (1, should be 2) typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:401:54: error: expected identifier before ‘::’ token typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~ /usr/include/c++/6/bits/stl_algobase.h:401:56: error: explicit qualification in declaration of ‘__value’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:401:63: error: expected ‘;’ before ‘,’ token typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^ /usr/include/c++/6/bits/stl_algobase.h:407:37: error: ‘__is_char’ was not declared in this scope typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:407:37: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:344:12: note: ‘std::__is_char’ struct __is_char ^~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:407:53: error: wrong number of template arguments (1, should be 2) typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:407:54: error: expected identifier before ‘::’ token typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~ /usr/include/c++/6/bits/stl_algobase.h:407:56: error: explicit qualification in declaration of ‘__value’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:407:63: error: expected ‘;’ before ‘,’ token typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^ /usr/include/c++/6/bits/stl_algobase.h:413:37: error: ‘__is_char’ was not declared in this scope typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:413:37: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:344:12: note: ‘std::__is_char’ struct __is_char ^~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:413:53: error: wrong number of template arguments (1, should be 2) typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:413:54: error: expected identifier before ‘::’ token typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~ /usr/include/c++/6/bits/stl_algobase.h:413:56: error: explicit qualification in declaration of ‘__value’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:413:63: error: expected ‘;’ before ‘,’ token typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI __copy_move_a2(_II, _II, _OI)’: /usr/include/c++/6/bits/stl_algobase.h:422:18: error: ‘__copy_move_a’ is not a member of ‘std’ return _OI(std::__copy_move_a<_IsMove>(std::__niter_base(__first), ^~~ /usr/include/c++/6/bits/stl_algobase.h:422:18: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:375:5: note: ‘__copy_move_a’ __copy_move_a(_II __first, _II __last, _OI __result) ^~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI copy(_II, _II, _OI)’: /usr/include/c++/6/bits/stl_algobase.h:454:15: error: ‘__copy_move_a2’ is not a member of ‘std’ return (std::__copy_move_a2<__is_move_iterator<_II>::__value> ^~~ /usr/include/c++/6/bits/stl_algobase.h:454:15: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:420:5: note: ‘__copy_move_a2’ __copy_move_a2(_II __first, _II __last, _OI __result) ^~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:454:35: error: ‘__is_move_iterator’ was not declared in this scope return (std::__copy_move_a2<__is_move_iterator<_II>::__value> ^~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:454:35: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:398:12: note: ‘std::__is_move_iterator’ struct __is_move_iterator ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:454:57: error: expected primary-expression before ‘>’ token return (std::__copy_move_a2<__is_move_iterator<_II>::__value> ^ /usr/include/c++/6/bits/stl_algobase.h:454:67: error: missing template arguments before ‘>’ token return (std::__copy_move_a2<__is_move_iterator<_II>::__value> ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI move(_II, _II, _OI)’: /usr/include/c++/6/bits/stl_algobase.h:487:14: error: ‘__copy_move_a2’ is not a member of ‘std’ return std::__copy_move_a2(std::__miter_base(__first), ^~~ /usr/include/c++/6/bits/stl_algobase.h:487:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:420:5: note: ‘__copy_move_a2’ __copy_move_a2(_II __first, _II __last, _OI __result) ^~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:525:47: error: ‘random_access_iterator_tag’ was not declared in this scope struct __copy_move_backward ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:525:47: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:525:73: error: template argument 3 is invalid struct __copy_move_backward ^ /usr/include/c++/6/bits/stl_algobase.h:540:46: error: ‘random_access_iterator_tag’ was not declared in this scope struct __copy_move_backward ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:540:46: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:540:72: error: template argument 3 is invalid struct __copy_move_backward ^ /usr/include/c++/6/bits/stl_algobase.h:555:48: error: ‘random_access_iterator_tag’ was not declared in this scope struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:555:48: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:555:74: error: template argument 3 is invalid struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_BI2 __copy_move_backward_a(_BI1, _BI1, _BI2)’: /usr/include/c++/6/bits/stl_algobase.h:579:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_BI1>::value_type _ValueType1; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:579:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_BI1>::value_type _ValueType1; ^ /usr/include/c++/6/bits/stl_algobase.h:580:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_BI2>::value_type _ValueType2; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:580:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_BI2>::value_type _ValueType2; ^ /usr/include/c++/6/bits/stl_algobase.h:581:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_BI1>::iterator_category _Category; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:581:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_BI1>::iterator_category _Category; ^ /usr/include/c++/6/bits/stl_algobase.h:582:43: error: ‘_ValueType1’ does not name a type const bool __simple = (__is_trivial(_ValueType1) ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:583:26: error: ‘__is_pointer’ was not declared in this scope && __is_pointer<_BI1>::__value ^~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:583:26: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:311:12: note: ‘std::__is_pointer’ struct __is_pointer ^~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:583:43: error: expected primary-expression before ‘>’ token && __is_pointer<_BI1>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:584:23: error: missing template arguments before ‘&&’ token && __is_pointer<_BI2>::__value ^~ /usr/include/c++/6/bits/stl_algobase.h:584:43: error: expected primary-expression before ‘>’ token && __is_pointer<_BI2>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:585:9: error: missing template arguments before ‘&&’ token && __are_same<_ValueType1, _ValueType2>::__value); ^~ /usr/include/c++/6/bits/stl_algobase.h:585:12: error: ‘__are_same’ was not declared in this scope && __are_same<_ValueType1, _ValueType2>::__value); ^~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:585:12: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:95:12: note: ‘std::__are_same’ struct __are_same ^~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:585:23: error: ‘_ValueType1’ was not declared in this scope && __are_same<_ValueType1, _ValueType2>::__value); ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:587:14: error: ‘__copy_move_backward’ is not a member of ‘std’ return std::__copy_move_backward<_IsMove, __simple, ^~~ /usr/include/c++/6/bits/stl_algobase.h:587:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:497:12: note: ‘__copy_move_backward’ struct __copy_move_backward ^~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:588:33: error: ‘_Category’ was not declared in this scope _Category>::__copy_move_b(__first, ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:588:43: error: ‘::__copy_move_b’ has not been declared _Category>::__copy_move_b(__first, ^~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_BI2 __copy_move_backward_a2(_BI1, _BI1, _BI2)’: /usr/include/c++/6/bits/stl_algobase.h:597:19: error: ‘__copy_move_backward_a’ is not a member of ‘std’ return _BI2(std::__copy_move_backward_a<_IsMove> ^~~ /usr/include/c++/6/bits/stl_algobase.h:597:19: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:577:5: note: ‘__copy_move_backward_a’ __copy_move_backward_a(_BI1 __first, _BI1 __last, _BI2 __result) ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_BI2 copy_backward(_BI1, _BI1, _BI2)’: /usr/include/c++/6/bits/stl_algobase.h:632:15: error: ‘__copy_move_backward_a2’ is not a member of ‘std’ return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> ^~~ /usr/include/c++/6/bits/stl_algobase.h:632:15: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:595:5: note: ‘__copy_move_backward_a2’ __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:632:44: error: ‘__is_move_iterator’ was not declared in this scope return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> ^~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:632:44: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:398:12: note: ‘std::__is_move_iterator’ struct __is_move_iterator ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:632:67: error: expected primary-expression before ‘>’ token return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> ^ /usr/include/c++/6/bits/stl_algobase.h:632:77: error: missing template arguments before ‘>’ token return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_BI2 move_backward(_BI1, _BI1, _BI2)’: /usr/include/c++/6/bits/stl_algobase.h:668:14: error: ‘__copy_move_backward_a2’ is not a member of ‘std’ return std::__copy_move_backward_a2(std::__miter_base(__first), ^~~ /usr/include/c++/6/bits/stl_algobase.h:668:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:595:5: note: ‘__copy_move_backward_a2’ __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:680:29: error: ‘__is_scalar’ was not declared in this scope __gnu_cxx::__enable_if::__value, void>::__type ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:680:29: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:336:12: note: ‘std::__is_scalar’ struct __is_scalar ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:680:44: error: wrong number of template arguments (1, should be 2) __gnu_cxx::__enable_if::__value, void>::__type ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:680:45: error: expected identifier before ‘::’ token __gnu_cxx::__enable_if::__value, void>::__type ^~ /usr/include/c++/6/bits/stl_algobase.h:680:47: error: explicit qualification in declaration of ‘__value’ __gnu_cxx::__enable_if::__value, void>::__type ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:680:47: error: ‘__value’ declared as an ‘inline’ variable /usr/include/c++/6/bits/stl_algobase.h:680:47: error: redeclaration of ‘template int __value’ /usr/include/c++/6/bits/stl_algobase.h:401:56: note: previous declaration ‘template int __value<_IsMove, _CharT>’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:680:54: error: expected ‘;’ before ‘,’ token __gnu_cxx::__enable_if::__value, void>::__type ^ /usr/include/c++/6/bits/stl_algobase.h:690:28: error: ‘__is_scalar’ was not declared in this scope __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:690:28: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:336:12: note: ‘std::__is_scalar’ struct __is_scalar ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:690:43: error: wrong number of template arguments (1, should be 2) __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:690:44: error: expected identifier before ‘::’ token __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type ^~ /usr/include/c++/6/bits/stl_algobase.h:690:46: error: explicit qualification in declaration of ‘__value’ __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:690:46: error: ‘__value’ declared as an ‘inline’ variable /usr/include/c++/6/bits/stl_algobase.h:690:46: error: redeclaration of ‘template int __value’ /usr/include/c++/6/bits/stl_algobase.h:401:56: note: previous declaration ‘template int __value<_IsMove, _CharT>’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:690:53: error: expected ‘;’ before ‘,’ token __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type ^ /usr/include/c++/6/bits/stl_algobase.h:702:28: error: ‘__is_byte’ was not declared in this scope __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:702:28: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:367:12: note: ‘std::__is_byte’ struct __is_byte ^~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:702:41: error: wrong number of template arguments (1, should be 2) __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:702:42: error: expected identifier before ‘::’ token __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type ^~ /usr/include/c++/6/bits/stl_algobase.h:702:44: error: explicit qualification in declaration of ‘__value’ __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:702:44: error: ‘__value’ declared as an ‘inline’ variable /usr/include/c++/6/bits/stl_algobase.h:702:44: error: redeclaration of ‘template int __value’ /usr/include/c++/6/bits/stl_algobase.h:401:56: note: previous declaration ‘template int __value<_IsMove, _CharT>’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:702:51: error: expected ‘;’ before ‘,’ token __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘void fill(_ForwardIterator, _ForwardIterator, const _Tp&)’: /usr/include/c++/6/bits/stl_algobase.h:731:7: error: ‘__fill_a’ is not a member of ‘std’ std::__fill_a(std::__niter_base(__first), std::__niter_base(__last), ^~~ /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:737:29: error: ‘__is_scalar’ was not declared in this scope __gnu_cxx::__enable_if::__value, _OutputIterator>::__type ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:737:29: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:336:12: note: ‘std::__is_scalar’ struct __is_scalar ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:737:44: error: wrong number of template arguments (1, should be 2) __gnu_cxx::__enable_if::__value, _OutputIterator>::__type ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:737:45: error: expected identifier before ‘::’ token __gnu_cxx::__enable_if::__value, _OutputIterator>::__type ^~ /usr/include/c++/6/bits/stl_algobase.h:737:47: error: explicit qualification in declaration of ‘__value’ __gnu_cxx::__enable_if::__value, _OutputIterator>::__type ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:737:47: error: ‘__value’ declared as an ‘inline’ variable /usr/include/c++/6/bits/stl_algobase.h:737:47: error: redeclaration of ‘template int __value’ /usr/include/c++/6/bits/stl_algobase.h:401:56: note: previous declaration ‘template int __value<_IsMove, _CharT>’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:737:54: error: expected ‘;’ before ‘,’ token __gnu_cxx::__enable_if::__value, _OutputIterator>::__type ^ /usr/include/c++/6/bits/stl_algobase.h:748:28: error: ‘__is_scalar’ was not declared in this scope __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:748:28: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:336:12: note: ‘std::__is_scalar’ struct __is_scalar ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:748:43: error: wrong number of template arguments (1, should be 2) __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:748:44: error: expected identifier before ‘::’ token __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type ^~ /usr/include/c++/6/bits/stl_algobase.h:748:46: error: explicit qualification in declaration of ‘__value’ __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:748:46: error: ‘__value’ declared as an ‘inline’ variable /usr/include/c++/6/bits/stl_algobase.h:748:46: error: redeclaration of ‘template int __value’ /usr/include/c++/6/bits/stl_algobase.h:401:56: note: previous declaration ‘template int __value<_IsMove, _CharT>’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:748:53: error: expected ‘;’ before ‘,’ token __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type ^ /usr/include/c++/6/bits/stl_algobase.h:760:28: error: ‘__is_byte’ was not declared in this scope __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:760:28: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:367:12: note: ‘std::__is_byte’ struct __is_byte ^~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:760:41: error: wrong number of template arguments (1, should be 2) __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type ^ In file included from /usr/include/c++/6/cmath:43:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/ext/type_traits.h:45:12: note: provided for ‘template, class> struct __gnu_cxx::__enable_if’ struct __enable_if ^~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:760:42: error: expected identifier before ‘::’ token __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type ^~ /usr/include/c++/6/bits/stl_algobase.h:760:44: error: explicit qualification in declaration of ‘__value’ __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:760:44: error: ‘__value’ declared as an ‘inline’ variable /usr/include/c++/6/bits/stl_algobase.h:760:44: error: redeclaration of ‘template int __value’ /usr/include/c++/6/bits/stl_algobase.h:401:56: note: previous declaration ‘template int __value<_IsMove, _CharT>’ typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:760:51: error: expected ‘;’ before ‘,’ token __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type ^ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI fill_n(_OI, _Size, const _Tp&)’: /usr/include/c++/6/bits/stl_algobase.h:789:18: error: ‘__fill_n_a’ is not a member of ‘std’ return _OI(std::__fill_n_a(std::__niter_base(__first), __n, __value)); ^~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘bool __equal_aux(_II1, _II1, _II2)’: /usr/include/c++/6/bits/stl_algobase.h:823:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II1>::value_type _ValueType1; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:823:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II1>::value_type _ValueType1; ^ /usr/include/c++/6/bits/stl_algobase.h:824:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II2>::value_type _ValueType2; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:824:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II2>::value_type _ValueType2; ^ /usr/include/c++/6/bits/stl_algobase.h:825:31: error: ‘__is_integer’ was not declared in this scope const bool __simple = ((__is_integer<_ValueType1>::__value ^~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:825:31: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:127:12: note: ‘std::__is_integer’ struct __is_integer ^~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:825:44: error: ‘_ValueType1’ was not declared in this scope const bool __simple = ((__is_integer<_ValueType1>::__value ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:826:10: error: missing template arguments before ‘||’ token || __is_pointer<_ValueType1>::__value) ^~ /usr/include/c++/6/bits/stl_algobase.h:826:13: error: ‘__is_pointer’ was not declared in this scope || __is_pointer<_ValueType1>::__value) ^~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:826:13: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:311:12: note: ‘std::__is_pointer’ struct __is_pointer ^~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:826:47: error: missing template arguments before ‘)’ token || __is_pointer<_ValueType1>::__value) ^ /usr/include/c++/6/bits/stl_algobase.h:827:43: error: expected primary-expression before ‘>’ token && __is_pointer<_II1>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:828:23: error: missing template arguments before ‘&&’ token && __is_pointer<_II2>::__value ^~ /usr/include/c++/6/bits/stl_algobase.h:828:43: error: expected primary-expression before ‘>’ token && __is_pointer<_II2>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:829:9: error: missing template arguments before ‘&&’ token && __are_same<_ValueType1, _ValueType2>::__value); ^~ /usr/include/c++/6/bits/stl_algobase.h:829:12: error: ‘__are_same’ was not declared in this scope && __are_same<_ValueType1, _ValueType2>::__value); ^~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:829:12: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:95:12: note: ‘std::__are_same’ struct __are_same ^~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:829:36: error: ‘_ValueType2’ was not declared in this scope && __are_same<_ValueType1, _ValueType2>::__value); ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:829:57: error: missing template arguments before ‘)’ token && __are_same<_ValueType1, _ValueType2>::__value); ^ /usr/include/c++/6/bits/stl_algobase.h:831:14: error: ‘__equal’ is not a member of ‘std’ return std::__equal<__simple>::equal(__first1, __last1, __first2); ^~~ /usr/include/c++/6/bits/stl_algobase.h:831:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:793:12: note: ‘__equal’ struct __equal ^~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:831:36: error: ‘::equal’ has not been declared return std::__equal<__simple>::equal(__first1, __last1, __first2); ^~ /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:849:21: error: ‘random_access_iterator_tag’ was not declared in this scope struct __lc_rai ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:849:21: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:849:49: error: ‘random_access_iterator_tag’ was not declared in this scope struct __lc_rai ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:849:49: note: suggested alternative: In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’ struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:849:75: error: template argument 1 is invalid struct __lc_rai ^ /usr/include/c++/6/bits/stl_algobase.h:849:75: error: template argument 2 is invalid /usr/include/c++/6/bits/stl_algobase.h: In function ‘bool __lexicographical_compare_impl(_II1, _II1, _II2, _II2, _Compare)’: /usr/include/c++/6/bits/stl_algobase.h:875:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II1>::iterator_category _Category1; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:875:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II1>::iterator_category _Category1; ^ /usr/include/c++/6/bits/stl_algobase.h:876:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II2>::iterator_category _Category2; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:876:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II2>::iterator_category _Category2; ^ /usr/include/c++/6/bits/stl_algobase.h:877:20: error: ‘__lc_rai’ in namespace ‘std’ does not name a template type typedef std::__lc_rai<_Category1, _Category2> __rai_type; ^~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:879:17: error: ‘__rai_type’ has not been declared __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); ^~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:880:37: error: ‘__rai_type’ has not been declared for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); ^~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In static member function ‘static bool __lexicographical_compare<_BoolType>::__lc(_II1, _II1, _II2, _II2)’: /usr/include/c++/6/bits/stl_algobase.h:904:9: error: ‘__lexicographical_compare_impl’ is not a member of ‘std’ return std::__lexicographical_compare_impl(__first1, __last1, ^~~ /usr/include/c++/6/bits/stl_algobase.h:904:9: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:871:5: note: ‘__lexicographical_compare_impl’ __lexicographical_compare_impl(_II1 __first1, _II1 __last1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./src/dgate/src/total.cpp:142:0: /usr/include/c++/6/bits/stl_algobase.h: In static member function ‘static bool __lexicographical_compare::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)’: ./src/dgate/dicomlib/aaac.cxx:49:19: error: expected unqualified-id before ‘(’ token #define min(a, b) ((a)<(b)?(a):(b)) ^ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h: In function ‘bool __lexicographical_compare_aux(_II1, _II1, _II2, _II2)’: /usr/include/c++/6/bits/stl_algobase.h:931:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II1>::value_type _ValueType1; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:931:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II1>::value_type _ValueType1; ^ /usr/include/c++/6/bits/stl_algobase.h:932:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_II2>::value_type _ValueType2; ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:932:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_II2>::value_type _ValueType2; ^ /usr/include/c++/6/bits/stl_algobase.h:934:3: error: ‘__is_byte’ was not declared in this scope (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value ^~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:934:3: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:367:12: note: ‘std::__is_byte’ struct __is_byte ^~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:934:13: error: ‘_ValueType1’ was not declared in this scope (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:934:35: error: missing template arguments before ‘&&’ token (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value ^~ /usr/include/c++/6/bits/stl_algobase.h:934:48: error: ‘_ValueType2’ was not declared in this scope (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:935:3: error: missing template arguments before ‘&&’ token && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed ^~ /usr/include/c++/6/bits/stl_algobase.h:935:35: error: the value of ‘_ValueType1’ is not usable in a constant expression && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:934:13: note: ‘_ValueType1’ was not declared ‘constexpr’ (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:935:46: error: type/value mismatch at argument 1 in template parameter list for ‘template struct __gnu_cxx::__numeric_traits’ && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed ^ /usr/include/c++/6/bits/stl_algobase.h:935:46: note: expected a type, got ‘_ValueType1’ /usr/include/c++/6/bits/stl_algobase.h:936:35: error: the value of ‘_ValueType2’ is not usable in a constant expression && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:934:48: note: ‘_ValueType2’ was not declared ‘constexpr’ (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:936:46: error: type/value mismatch at argument 1 in template parameter list for ‘template struct __gnu_cxx::__numeric_traits’ && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed ^ /usr/include/c++/6/bits/stl_algobase.h:936:46: note: expected a type, got ‘_ValueType2’ /usr/include/c++/6/bits/stl_algobase.h:937:6: error: ‘__is_pointer’ was not declared in this scope && __is_pointer<_II1>::__value ^~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:937:6: note: suggested alternative: In file included from /usr/include/c++/6/cmath:42:0, from /usr/include/c++/6/math.h:36, from ./src/dgate/src/nkiqrsop.cpp:272, from ./src/dgate/src/total.cpp:148: /usr/include/c++/6/bits/cpp_type_traits.h:311:12: note: ‘std::__is_pointer’ struct __is_pointer ^~~~~~~~~~~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from ./src/dgate/charls/publictypes.h:10, from ./src/dgate/charls/interface.h:9, from ./src/dgate/src/jpegconv.cpp:51, from ./src/dgate/src/total.cpp:157: /usr/include/c++/6/bits/stl_algobase.h:937:23: error: expected primary-expression before ‘>’ token && __is_pointer<_II1>::__value ^ /usr/include/c++/6/bits/stl_algobase.h:938:3: error: missing template arguments before ‘&&’ token && __is_pointer<_II2>::__value); ^~ /usr/include/c++/6/bits/stl_algobase.h:938:23: error: expected primary-expression before ‘>’ token && __is_pointer<_II2>::__value); ^ /usr/include/c++/6/bits/stl_algobase.h:938:33: error: missing template arguments before ‘)’ token && __is_pointer<_II2>::__value); ^ /usr/include/c++/6/bits/stl_algobase.h:940:14: error: ‘__lexicographical_compare’ is not a member of ‘std’ return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, ^~~ /usr/include/c++/6/bits/stl_algobase.h:940:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:892:12: note: ‘__lexicographical_compare’ struct __lexicographical_compare ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:940:54: error: ‘::__lc’ has not been declared return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, ^~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_ForwardIterator __lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare)’: /usr/include/c++/6/bits/stl_algobase.h:949:24: error: expected nested-name-specifier before ‘iterator_traits’ typedef typename iterator_traits<_ForwardIterator>::difference_type ^~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:949:39: error: expected initializer before ‘<’ token typedef typename iterator_traits<_ForwardIterator>::difference_type ^ /usr/include/c++/6/bits/stl_algobase.h:952:7: error: ‘_DistanceType’ was not declared in this scope _DistanceType __len = std::distance(__first, __last); ^~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h:954:14: error: ‘__len’ was not declared in this scope while (__len > 0) ^~~~~ /usr/include/c++/6/bits/stl_algobase.h:956:18: error: expected ‘;’ before ‘__half’ _DistanceType __half = __len >> 1; ^~~~~~ /usr/include/c++/6/bits/stl_algobase.h:958:27: error: ‘__half’ was not declared in this scope std::advance(__middle, __half); ^~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘_ForwardIterator lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)’: /usr/include/c++/6/bits/stl_algobase.h:993:14: error: ‘__lower_bound’ is not a member of ‘std’ return std::__lower_bound(__first, __last, __val, ^~~ /usr/include/c++/6/bits/stl_algobase.h:993:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:946:5: note: ‘__lower_bound’ __lower_bound(_ForwardIterator __first, _ForwardIterator __last, ^~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘bool equal(_II1, _II1, _II2)’: /usr/include/c++/6/bits/stl_algobase.h:1051:14: error: ‘__equal_aux’ is not a member of ‘std’ return std::__equal_aux(std::__niter_base(__first1), ^~~ /usr/include/c++/6/bits/stl_algobase.h:1051:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:821:5: note: ‘__equal_aux’ __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) ^~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘bool lexicographical_compare(_II1, _II1, _II2, _II2)’: /usr/include/c++/6/bits/stl_algobase.h:1218:14: error: ‘__lexicographical_compare_aux’ is not a member of ‘std’ return std::__lexicographical_compare_aux(std::__niter_base(__first1), ^~~ /usr/include/c++/6/bits/stl_algobase.h:1218:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:928:5: note: ‘__lexicographical_compare_aux’ __lexicographical_compare_aux(_II1 __first1, _II1 __last1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: In function ‘bool lexicographical_compare(_II1, _II1, _II2, _II2, _Compare)’: /usr/include/c++/6/bits/stl_algobase.h:1248:14: error: ‘__lexicographical_compare_impl’ is not a member of ‘std’ return std::__lexicographical_compare_impl ^~~ /usr/include/c++/6/bits/stl_algobase.h:1248:14: note: suggested alternative: /usr/include/c++/6/bits/stl_algobase.h:871:5: note: ‘__lexicographical_compare_impl’ __lexicographical_compare_impl(_II1 __first1, _II1 __last1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_algobase.h: At global scope: /usr/include/c++/6/bits/stl_algobase.h:1255:5: error: ‘pair’ does not name a type pair<_InputIterator1, _InputIterator2> ^~~~ /usr/include/c++/6/bits/stl_algobase.h:1281:12: error: ‘pair’ does not name a type inline pair<_InputIterator1, _InputIterator2> ^~~~ /usr/include/c++/6/bits/stl_algobase.h:1315:12: error: ‘pair’ does not name a type inline pair<_InputIterator1, _InputIterator2> ^~~~ /usr/include/c++/6/bits/stl_algobase.h:1414:1: error: expected declaration before ‘}’ token } // namespace std ^ cp: cannot stat './dgate': No such file or directory cp: cannot stat './dgate': No such file or directory