AyushP123

xapian-docsprint errors

Feb 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 227.76 KB | None | 0 0
  1. make html LANGUAGE=c++
  2.  
  3. sphinx-build -b html -q -d _build/doctrees   -tc++ . _build/html
  4. sh: 1: xapian-config: not found
  5. sh: 1: xapian-config: not found
  6. In file included from /usr/include/c++/5/unordered_set:35:0,
  7.                  from /usr/local/include/xapian/queryparser.h:37,
  8.                  from /usr/local/include/xapian.h:80,
  9.                  from code/c++/index1.cc:1:
  10. /usr/include/c++/5/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.
  11.  #error This file requires compiler and library support \
  12.   ^
  13. In file included from /usr/local/include/xapian.h:80:0,
  14.                  from code/c++/index1.cc:1:
  15. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  16.      std::unordered_set<std::string> stop_words;
  17.           ^
  18. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  19. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  20.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  21.                                                    ^
  22. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  23. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  24.      void add(const std::string & word) { stop_words.insert(word); }
  25.                                           ^
  26. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  27. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  28.   return stop_words.find(term) != stop_words.end();
  29.          ^
  30. In file included from /usr/local/include/xapian.h:85:0,
  31.                  from code/c++/index1.cc:1:
  32. /usr/local/include/xapian/cluster.h: At global scope:
  33. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  34.      std::unordered_map<std::string, doccount> termfreq;
  35.           ^
  36. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  37.      std::unordered_map<std::string, double> weights;
  38.           ^
  39. In file included from /usr/include/c++/5/unordered_set:35:0,
  40.                  from /usr/local/include/xapian/queryparser.h:37,
  41.                  from /usr/local/include/xapian.h:80,
  42.                  from code/c++/support.cc:1:
  43. /usr/include/c++/5/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.
  44.  #error This file requires compiler and library support \
  45.   ^
  46. In file included from /usr/local/include/xapian.h:80:0,
  47.                  from code/c++/support.cc:1:
  48. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  49.      std::unordered_set<std::string> stop_words;
  50.           ^
  51. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  52. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  53.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  54.                                                    ^
  55. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  56. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  57.      void add(const std::string & word) { stop_words.insert(word); }
  58.                                           ^
  59. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  60. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  61.   return stop_words.find(term) != stop_words.end();
  62.          ^
  63. In file included from /usr/local/include/xapian.h:85:0,
  64.                  from code/c++/support.cc:1:
  65. /usr/local/include/xapian/cluster.h: At global scope:
  66. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  67.      std::unordered_map<std::string, doccount> termfreq;
  68.           ^
  69. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  70.      std::unordered_map<std::string, double> weights;
  71.           ^
  72. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/advanced/learning_to_rank.rst): Exit status 32512, expected 0
  73. --- tmp.out 2018-02-18 23:13:37.254715416 +0530
  74. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  75. @@ -1 +0,0 @@
  76. -sh: 2: code/c++/built/index1: not found
  77. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  78. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  79. $ cat tmp2.out >> tmp.out
  80. $ vimdiff tmp.out code/expected.out/index1.out
  81. sh: 1: xapian-config: not found
  82. sh: 1: xapian-config: not found
  83. In file included from /usr/include/c++/5/unordered_set:35:0,
  84.                  from /usr/local/include/xapian/queryparser.h:37,
  85.                  from /usr/local/include/xapian.h:80,
  86.                  from /usr/local/include/xapian-letor.h:23,
  87.                  from code/c++/search_letor.cc:23:
  88. /usr/include/c++/5/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.
  89.  #error This file requires compiler and library support \
  90.   ^
  91. In file included from /usr/local/include/xapian.h:80:0,
  92.                  from /usr/local/include/xapian-letor.h:23,
  93.                  from code/c++/search_letor.cc:23:
  94. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  95.      std::unordered_set<std::string> stop_words;
  96.           ^
  97. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  98. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  99.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  100.                                                    ^
  101. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  102. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  103.      void add(const std::string & word) { stop_words.insert(word); }
  104.                                           ^
  105. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  106. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  107.   return stop_words.find(term) != stop_words.end();
  108.          ^
  109. In file included from /usr/local/include/xapian.h:85:0,
  110.                  from /usr/local/include/xapian-letor.h:23,
  111.                  from code/c++/search_letor.cc:23:
  112. /usr/local/include/xapian/cluster.h: At global scope:
  113. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  114.      std::unordered_map<std::string, doccount> termfreq;
  115.           ^
  116. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  117.      std::unordered_map<std::string, double> weights;
  118.           ^
  119. code/expected.out/search_letor.out: (/home/ayush/Desktop/workspace/xapian-docsprint/advanced/learning_to_rank.rst): Exit status 32512, expected 0
  120. --- tmp.out 2018-02-18 23:13:37.606696430 +0530
  121. +++ code/expected.out/search_letor.out  2017-08-21 23:17:12.953599961 +0530
  122. @@ -1 +1,59 @@
  123. -sh: 2: code/c++/built/search_letor: not found
  124. +Docids before re-ranking by LTR model:
  125. +4: [6.7291]
  126. +1970-377
  127. +Watch with Chinese duplex escapement
  128. +Watch with Chinese duplex escapement
  129. +13: [6.29324]
  130. +1985-1538
  131. +Watch timer by P
  132. +Watch timer by P.L. Instruments Ltd., Welwyn Garden City; with tuning fork standard and spark printer
  133. +33: [5.77657]
  134. +1986-516
  135. +A device by Favag of Neuchatel which enables a stop watch to
  136. +A device by Favag of Neuchatel which enables a stop watch to be operated by an electric signal, 1961
  137. +18: [5.76966]
  138. +1987-1145
  139. +Solar/Sidereal verge watch with epicyclic maintaining power
  140. +Solar/Sidereal verge watch with epicyclic maintaining power by James Green, London, no. 5969, in silver pair case hallmarked 1776, believed to be the earliest English watch to indicate solar and sidereal time with seconds.
  141. +36: [5.52705]
  142. +1986-91
  143. +Universal 'Tri-Compax' chronographic wrist watch
  144. +'Tri-Compax' calendar chronograph wristwatch in gold case, by Universal, Geneva, Switzerland, 1960-1986.
  145. +15: [5.05174]
  146. +1985-1914
  147. +Ingersoll "Dan Dare" automaton pocket watch with pin-pallet
  148. +Ingersoll "Dan Dare" automaton pocket watch with pin-pallet lever escapement. The dial shows a helmeted Dan Dare holding a ray gun, with a monster approaching. The emblem of the " Eagle" children's comic is impressed in the back of case.
  149. +46: [2.5204]
  150. +1883-68
  151. +Model by Dent of mechanism for setting hands and winding up
  152. +Model by Dent of mechanism for setting hands and winding up a keyless watch
  153. +Docids after re-ranking by LTR model:
  154. +
  155. +46: [-0.0075442]
  156. +1883-68
  157. +Model by Dent of mechanism for setting hands and winding up
  158. +Model by Dent of mechanism for setting hands and winding up a keyless watch
  159. +15: [-0.0298056]
  160. +1985-1914
  161. +Ingersoll "Dan Dare" automaton pocket watch with pin-pallet
  162. +Ingersoll "Dan Dare" automaton pocket watch with pin-pallet lever escapement. The dial shows a helmeted Dan Dare holding a ray gun, with a monster approaching. The emblem of the " Eagle" children's comic is impressed in the back of case.
  163. +33: [-0.0305018]
  164. +1986-516
  165. +A device by Favag of Neuchatel which enables a stop watch to
  166. +A device by Favag of Neuchatel which enables a stop watch to be operated by an electric signal, 1961
  167. +36: [-0.032863]
  168. +1986-91
  169. +Universal 'Tri-Compax' chronographic wrist watch
  170. +'Tri-Compax' calendar chronograph wristwatch in gold case, by Universal, Geneva, Switzerland, 1960-1986.
  171. +18: [-0.0338239]
  172. +1987-1145
  173. +Solar/Sidereal verge watch with epicyclic maintaining power
  174. +Solar/Sidereal verge watch with epicyclic maintaining power by James Green, London, no. 5969, in silver pair case hallmarked 1776, believed to be the earliest English watch to indicate solar and sidereal time with seconds.
  175. +13: [-0.0403684]
  176. +1985-1538
  177. +Watch timer by P
  178. +Watch timer by P.L. Instruments Ltd., Welwyn Garden City; with tuning fork standard and spark printer
  179. +4: [-0.0447454]
  180. +1970-377
  181. +Watch with Chinese duplex escapement
  182. +Watch with Chinese duplex escapement
  183. $ g++ `xapian-config --cxxflags` code/c++/search_letor.cc -lxapianletor -o code/c++/built/search_letor `xapian-config --libs`
  184. code/c++/built/search_letor db ListNET_Ranker watch > tmp.out 2> tmp2.out
  185. $ cat tmp2.out >> tmp.out
  186. $ vimdiff tmp.out code/expected.out/search_letor.out
  187. sh: 1: xapian-config: not found
  188. sh: 1: xapian-config: not found
  189. In file included from /usr/include/c++/5/unordered_set:35:0,
  190.                  from /usr/local/include/xapian/queryparser.h:37,
  191.                  from /usr/local/include/xapian.h:80,
  192.                  from code/c++/index_filters.cc:1:
  193. /usr/include/c++/5/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.
  194.  #error This file requires compiler and library support \
  195.   ^
  196. In file included from /usr/local/include/xapian.h:80:0,
  197.                  from code/c++/index_filters.cc:1:
  198. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  199.      std::unordered_set<std::string> stop_words;
  200.           ^
  201. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  202. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  203.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  204.                                                    ^
  205. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  206. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  207.      void add(const std::string & word) { stop_words.insert(word); }
  208.                                           ^
  209. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  210. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  211.   return stop_words.find(term) != stop_words.end();
  212.          ^
  213. In file included from /usr/local/include/xapian.h:85:0,
  214.                  from code/c++/index_filters.cc:1:
  215. /usr/local/include/xapian/cluster.h: At global scope:
  216. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  217.      std::unordered_map<std::string, doccount> termfreq;
  218.           ^
  219. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  220.      std::unordered_map<std::string, double> weights;
  221.           ^
  222. In file included from /usr/include/c++/5/unordered_set:35:0,
  223.                  from /usr/local/include/xapian/queryparser.h:37,
  224.                  from /usr/local/include/xapian.h:80,
  225.                  from code/c++/support.cc:1:
  226. /usr/include/c++/5/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.
  227.  #error This file requires compiler and library support \
  228.   ^
  229. In file included from /usr/local/include/xapian.h:80:0,
  230.                  from code/c++/support.cc:1:
  231. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  232.      std::unordered_set<std::string> stop_words;
  233.           ^
  234. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  235. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  236.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  237.                                                    ^
  238. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  239. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  240.      void add(const std::string & word) { stop_words.insert(word); }
  241.                                           ^
  242. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  243. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  244.   return stop_words.find(term) != stop_words.end();
  245.          ^
  246. In file included from /usr/local/include/xapian.h:85:0,
  247.                  from code/c++/support.cc:1:
  248. /usr/local/include/xapian/cluster.h: At global scope:
  249. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  250.      std::unordered_map<std::string, doccount> termfreq;
  251.           ^
  252. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  253.      std::unordered_map<std::string, double> weights;
  254.           ^
  255. code/expected.out/index_filters.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/boolean_filters.rst): Exit status 32512, expected 0
  256. --- tmp.out 2018-02-18 23:13:38.470649869 +0530
  257. +++ code/expected.out/index_filters.out 2017-08-10 14:41:44.689029766 +0530
  258. @@ -1 +0,0 @@
  259. -sh: 2: code/c++/built/index_filters: not found
  260. $ g++ `xapian-config --cxxflags` code/c++/index_filters.cc code/c++/support.cc -o code/c++/built/index_filters `xapian-config --libs`
  261. code/c++/built/index_filters data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  262. $ cat tmp2.out >> tmp.out
  263. $ vimdiff tmp.out code/expected.out/index_filters.out
  264. sh: 1: xapian-config: not found
  265. sh: 1: xapian-config: not found
  266. In file included from /usr/include/c++/5/unordered_set:35:0,
  267.                  from /usr/local/include/xapian/queryparser.h:37,
  268.                  from /usr/local/include/xapian.h:80,
  269.                  from code/c++/search_filters.cc:1:
  270. /usr/include/c++/5/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.
  271.  #error This file requires compiler and library support \
  272.   ^
  273. In file included from /usr/local/include/xapian.h:80:0,
  274.                  from code/c++/search_filters.cc:1:
  275. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  276.      std::unordered_set<std::string> stop_words;
  277.           ^
  278. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  279. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  280.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  281.                                                    ^
  282. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  283. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  284.      void add(const std::string & word) { stop_words.insert(word); }
  285.                                           ^
  286. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  287. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  288.   return stop_words.find(term) != stop_words.end();
  289.          ^
  290. In file included from /usr/local/include/xapian.h:85:0,
  291.                  from code/c++/search_filters.cc:1:
  292. /usr/local/include/xapian/cluster.h: At global scope:
  293. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  294.      std::unordered_map<std::string, doccount> termfreq;
  295.           ^
  296. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  297.      std::unordered_map<std::string, double> weights;
  298.           ^
  299. In file included from /usr/include/c++/5/unordered_set:35:0,
  300.                  from /usr/local/include/xapian/queryparser.h:37,
  301.                  from /usr/local/include/xapian.h:80,
  302.                  from code/c++/support.cc:1:
  303. /usr/include/c++/5/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.
  304.  #error This file requires compiler and library support \
  305.   ^
  306. In file included from /usr/local/include/xapian.h:80:0,
  307.                  from code/c++/support.cc:1:
  308. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  309.      std::unordered_set<std::string> stop_words;
  310.           ^
  311. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  312. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  313.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  314.                                                    ^
  315. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  316. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  317.      void add(const std::string & word) { stop_words.insert(word); }
  318.                                           ^
  319. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  320. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  321.   return stop_words.find(term) != stop_words.end();
  322.          ^
  323. In file included from /usr/local/include/xapian.h:85:0,
  324.                  from code/c++/support.cc:1:
  325. /usr/local/include/xapian/cluster.h: At global scope:
  326. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  327.      std::unordered_map<std::string, doccount> termfreq;
  328.           ^
  329. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  330.      std::unordered_map<std::string, double> weights;
  331.           ^
  332. code/expected.out/search_filters.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/boolean_filters.rst): Exit status 32512, expected 0
  333. --- tmp.out 2018-02-18 23:13:38.874628115 +0530
  334. +++ code/expected.out/search_filters.out    2017-08-10 14:41:44.689029766 +0530
  335. @@ -1 +1,9 @@
  336. -sh: 2: code/c++/built/search_filters: not found
  337. +1: #012 Assembled and unassembled EXA electric clock kit
  338. +2: #098 'Pond' electric clock movement (no dial)
  339. +3: #052 Reconstruction of Dondi's Astronomical Clock, 1974
  340. +4: #059 Electrically operated clock controller
  341. +5: #024 Regulator Clock with Gravity Escapement
  342. +6: #097 Bain's subsidiary electric clock
  343. +7: #009 Copy  of a Dwerrihouse skeleton clock with coup-perdu escape
  344. +8: #091 Pendulum clock designed by Galileo in 1642 and made by his son in 1649, model.
  345. +'clock'[0:10] = 12 98 52 59 24 97 9 91
  346. $ g++ `xapian-config --cxxflags` code/c++/search_filters.cc code/c++/support.cc -o code/c++/built/search_filters `xapian-config --libs`
  347. code/c++/built/search_filters db clock 'steel (metal)' > tmp.out 2> tmp2.out
  348. $ cat tmp2.out >> tmp.out
  349. $ vimdiff tmp.out code/expected.out/search_filters.out
  350. sh: 1: xapian-config: not found
  351. sh: 1: xapian-config: not found
  352. In file included from /usr/include/c++/5/unordered_set:35:0,
  353.                  from /usr/local/include/xapian/queryparser.h:37,
  354.                  from /usr/local/include/xapian.h:80,
  355.                  from code/c++/search_filters2.cc:1:
  356. /usr/include/c++/5/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.
  357.  #error This file requires compiler and library support \
  358.   ^
  359. In file included from /usr/local/include/xapian.h:80:0,
  360.                  from code/c++/search_filters2.cc:1:
  361. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  362.      std::unordered_set<std::string> stop_words;
  363.           ^
  364. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  365. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  366.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  367.                                                    ^
  368. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  369. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  370.      void add(const std::string & word) { stop_words.insert(word); }
  371.                                           ^
  372. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  373. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  374.   return stop_words.find(term) != stop_words.end();
  375.          ^
  376. In file included from /usr/local/include/xapian.h:85:0,
  377.                  from code/c++/search_filters2.cc:1:
  378. /usr/local/include/xapian/cluster.h: At global scope:
  379. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  380.      std::unordered_map<std::string, doccount> termfreq;
  381.           ^
  382. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  383.      std::unordered_map<std::string, double> weights;
  384.           ^
  385. In file included from /usr/include/c++/5/unordered_set:35:0,
  386.                  from /usr/local/include/xapian/queryparser.h:37,
  387.                  from /usr/local/include/xapian.h:80,
  388.                  from code/c++/support.cc:1:
  389. /usr/include/c++/5/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.
  390.  #error This file requires compiler and library support \
  391.   ^
  392. In file included from /usr/local/include/xapian.h:80:0,
  393.                  from code/c++/support.cc:1:
  394. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  395.      std::unordered_set<std::string> stop_words;
  396.           ^
  397. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  398. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  399.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  400.                                                    ^
  401. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  402. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  403.      void add(const std::string & word) { stop_words.insert(word); }
  404.                                           ^
  405. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  406. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  407.   return stop_words.find(term) != stop_words.end();
  408.          ^
  409. In file included from /usr/local/include/xapian.h:85:0,
  410.                  from code/c++/support.cc:1:
  411. /usr/local/include/xapian/cluster.h: At global scope:
  412. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  413.      std::unordered_map<std::string, doccount> termfreq;
  414.           ^
  415. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  416.      std::unordered_map<std::string, double> weights;
  417.           ^
  418. code/expected.out/search_filters2.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/boolean_filters.rst): Exit status 32512, expected 0
  419. --- tmp.out 2018-02-18 23:13:39.262607246 +0530
  420. +++ code/expected.out/search_filters2.out   2017-08-10 14:41:44.689029766 +0530
  421. @@ -1 +1,9 @@
  422. -sh: 2: code/c++/built/search_filters2: not found
  423. +1: #012 Assembled and unassembled EXA electric clock kit
  424. +2: #098 'Pond' electric clock movement (no dial)
  425. +3: #052 Reconstruction of Dondi's Astronomical Clock, 1974
  426. +4: #059 Electrically operated clock controller
  427. +5: #024 Regulator Clock with Gravity Escapement
  428. +6: #097 Bain's subsidiary electric clock
  429. +7: #009 Copy  of a Dwerrihouse skeleton clock with coup-perdu escape
  430. +8: #091 Pendulum clock designed by Galileo in 1642 and made by his son in 1649, model.
  431. +'clock material:"steel (metal)"'[0:10] = 12 98 52 59 24 97 9 91
  432. $ g++ `xapian-config --cxxflags` code/c++/search_filters2.cc code/c++/support.cc -o code/c++/built/search_filters2 `xapian-config --libs`
  433. code/c++/built/search_filters2 db 'clock material:"steel (metal)"' > tmp.out 2> tmp2.out
  434. $ cat tmp2.out >> tmp.out
  435. $ vimdiff tmp.out code/expected.out/search_filters2.out
  436. sh: 1: xapian-config: not found
  437. sh: 1: xapian-config: not found
  438. In file included from /usr/include/c++/5/unordered_set:35:0,
  439.                  from /usr/local/include/xapian/queryparser.h:37,
  440.                  from /usr/local/include/xapian.h:80,
  441.                  from code/c++/index_facets.cc:1:
  442. /usr/include/c++/5/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.
  443.  #error This file requires compiler and library support \
  444.   ^
  445. In file included from /usr/local/include/xapian.h:80:0,
  446.                  from code/c++/index_facets.cc:1:
  447. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  448.      std::unordered_set<std::string> stop_words;
  449.           ^
  450. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  451. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  452.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  453.                                                    ^
  454. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  455. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  456.      void add(const std::string & word) { stop_words.insert(word); }
  457.                                           ^
  458. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  459. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  460.   return stop_words.find(term) != stop_words.end();
  461.          ^
  462. In file included from /usr/local/include/xapian.h:85:0,
  463.                  from code/c++/index_facets.cc:1:
  464. /usr/local/include/xapian/cluster.h: At global scope:
  465. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  466.      std::unordered_map<std::string, doccount> termfreq;
  467.           ^
  468. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  469.      std::unordered_map<std::string, double> weights;
  470.           ^
  471. In file included from /usr/include/c++/5/unordered_set:35:0,
  472.                  from /usr/local/include/xapian/queryparser.h:37,
  473.                  from /usr/local/include/xapian.h:80,
  474.                  from code/c++/support.cc:1:
  475. /usr/include/c++/5/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.
  476.  #error This file requires compiler and library support \
  477.   ^
  478. In file included from /usr/local/include/xapian.h:80:0,
  479.                  from code/c++/support.cc:1:
  480. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  481.      std::unordered_set<std::string> stop_words;
  482.           ^
  483. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  484. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  485.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  486.                                                    ^
  487. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  488. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  489.      void add(const std::string & word) { stop_words.insert(word); }
  490.                                           ^
  491. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  492. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  493.   return stop_words.find(term) != stop_words.end();
  494.          ^
  495. In file included from /usr/local/include/xapian.h:85:0,
  496.                  from code/c++/support.cc:1:
  497. /usr/local/include/xapian/cluster.h: At global scope:
  498. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  499.      std::unordered_map<std::string, doccount> termfreq;
  500.           ^
  501. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  502.      std::unordered_map<std::string, double> weights;
  503.           ^
  504. code/expected.out/index_facets.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/facets.rst): Exit status 32512, expected 0
  505. --- tmp.out 2018-02-18 23:13:39.690584236 +0530
  506. +++ code/expected.out/index_facets.out  2017-08-10 14:41:44.689029766 +0530
  507. @@ -1 +0,0 @@
  508. -sh: 2: code/c++/built/index_facets: not found
  509. $ g++ `xapian-config --cxxflags` code/c++/index_facets.cc code/c++/support.cc -o code/c++/built/index_facets `xapian-config --libs`
  510. code/c++/built/index_facets data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  511. $ cat tmp2.out >> tmp.out
  512. $ vimdiff tmp.out code/expected.out/index_facets.out
  513. sh: 1: xapian-config: not found
  514. sh: 1: xapian-config: not found
  515. In file included from /usr/include/c++/5/unordered_set:35:0,
  516.                  from /usr/local/include/xapian/queryparser.h:37,
  517.                  from /usr/local/include/xapian.h:80,
  518.                  from code/c++/search_facets.cc:1:
  519. /usr/include/c++/5/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.
  520.  #error This file requires compiler and library support \
  521.   ^
  522. In file included from /usr/local/include/xapian.h:80:0,
  523.                  from code/c++/search_facets.cc:1:
  524. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  525.      std::unordered_set<std::string> stop_words;
  526.           ^
  527. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  528. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  529.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  530.                                                    ^
  531. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  532. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  533.      void add(const std::string & word) { stop_words.insert(word); }
  534.                                           ^
  535. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  536. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  537.   return stop_words.find(term) != stop_words.end();
  538.          ^
  539. In file included from /usr/local/include/xapian.h:85:0,
  540.                  from code/c++/search_facets.cc:1:
  541. /usr/local/include/xapian/cluster.h: At global scope:
  542. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  543.      std::unordered_map<std::string, doccount> termfreq;
  544.           ^
  545. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  546.      std::unordered_map<std::string, double> weights;
  547.           ^
  548. In file included from /usr/include/c++/5/unordered_set:35:0,
  549.                  from /usr/local/include/xapian/queryparser.h:37,
  550.                  from /usr/local/include/xapian.h:80,
  551.                  from code/c++/support.cc:1:
  552. /usr/include/c++/5/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.
  553.  #error This file requires compiler and library support \
  554.   ^
  555. In file included from /usr/local/include/xapian.h:80:0,
  556.                  from code/c++/support.cc:1:
  557. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  558.      std::unordered_set<std::string> stop_words;
  559.           ^
  560. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  561. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  562.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  563.                                                    ^
  564. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  565. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  566.      void add(const std::string & word) { stop_words.insert(word); }
  567.                                           ^
  568. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  569. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  570.   return stop_words.find(term) != stop_words.end();
  571.          ^
  572. In file included from /usr/local/include/xapian.h:85:0,
  573.                  from code/c++/support.cc:1:
  574. /usr/local/include/xapian/cluster.h: At global scope:
  575. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  576.      std::unordered_map<std::string, doccount> termfreq;
  577.           ^
  578. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  579.      std::unordered_map<std::string, double> weights;
  580.           ^
  581. code/expected.out/search_facets.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/facets.rst): Exit status 32512, expected 0
  582. --- tmp.out 2018-02-18 23:13:40.086562956 +0530
  583. +++ code/expected.out/search_facets.out 2017-08-10 14:41:44.689029766 +0530
  584. @@ -1 +1,33 @@
  585. -sh: 2: code/c++/built/search_facets: not found
  586. +1: #044 Two-dial clock by the Self-Winding Clock Co; as used on the
  587. +2: #096 Clock with Hipp pendulum (an electric driven clock with Hipp
  588. +3: #012 Assembled and unassembled EXA electric clock kit
  589. +4: #098 'Pond' electric clock movement (no dial)
  590. +5: #083 Harrison's eight-day wooden clock movement, 1715.
  591. +6: #005 "Ever Ready" ceiling clock
  592. +7: #039 Electric clock of the Bain type
  593. +8: #061 Van der Plancke master clock
  594. +9: #064 Morse electrical clock, dial mechanism
  595. +10: #052 Reconstruction of Dondi's Astronomical Clock, 1974
  596. +Facet: Bain, Alexander; count: 3
  597. +Facet: Bloxam, J. M.; count: 1
  598. +Facet: Braun (maker); count: 1
  599. +Facet: British Horo-Electric Ltd. (maker); count: 1
  600. +Facet: British Vacuum Cleaner and Engineering Co. Ltd., Magneto Time division (maker); count: 1
  601. +Facet: EXA; count: 1
  602. +Facet: Ever Ready Co. (maker); count: 2
  603. +Facet: Ferranti Ltd.; count: 1
  604. +Facet: Galilei, Galileo, 1564-1642; Galilei, Vincenzio, 1606-1649; count: 1
  605. +Facet: Harrison, John (maker); count: 1
  606. +Facet: Hipp, M.; count: 1
  607. +Facet: La Précision Cie; count: 1
  608. +Facet: Lund, J.; count: 1
  609. +Facet: Morse, J. S.; count: 1
  610. +Facet: Self Winding Clock Company; count: 1
  611. +Facet: Self-Winding Clock Co. (maker); count: 1
  612. +Facet: Synchronome Co. Ltd. (maker); count: 2
  613. +Facet: Thwaites and Reed Ltd.; count: 1
  614. +Facet: Thwaites and Reed Ltd. (maker); count: 1
  615. +Facet: Viviani, Vincenzo; count: 1
  616. +Facet: Vulliamy, Benjamin, 1747-1811; count: 1
  617. +Facet: Whitefriars Glass Ltd. (maker); count: 1
  618. +'clock'[0:10] = 44 96 12 98 83 5 39 61 64 52
  619. $ g++ `xapian-config --cxxflags` code/c++/search_facets.cc code/c++/support.cc -o code/c++/built/search_facets `xapian-config --libs`
  620. code/c++/built/search_facets db clock > tmp.out 2> tmp2.out
  621. $ cat tmp2.out >> tmp.out
  622. $ vimdiff tmp.out code/expected.out/search_facets.out
  623. sh: 1: xapian-config: not found
  624. sh: 1: xapian-config: not found
  625. In file included from /usr/include/c++/5/unordered_set:35:0,
  626.                  from /usr/local/include/xapian/queryparser.h:37,
  627.                  from /usr/local/include/xapian.h:80,
  628.                  from code/c++/index_ranges.cc:1:
  629. /usr/include/c++/5/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.
  630.  #error This file requires compiler and library support \
  631.   ^
  632. In file included from /usr/local/include/xapian.h:80:0,
  633.                  from code/c++/index_ranges.cc:1:
  634. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  635.      std::unordered_set<std::string> stop_words;
  636.           ^
  637. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  638. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  639.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  640.                                                    ^
  641. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  642. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  643.      void add(const std::string & word) { stop_words.insert(word); }
  644.                                           ^
  645. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  646. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  647.   return stop_words.find(term) != stop_words.end();
  648.          ^
  649. In file included from /usr/local/include/xapian.h:85:0,
  650.                  from code/c++/index_ranges.cc:1:
  651. /usr/local/include/xapian/cluster.h: At global scope:
  652. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  653.      std::unordered_map<std::string, doccount> termfreq;
  654.           ^
  655. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  656.      std::unordered_map<std::string, double> weights;
  657.           ^
  658. In file included from /usr/include/c++/5/unordered_set:35:0,
  659.                  from /usr/local/include/xapian/queryparser.h:37,
  660.                  from /usr/local/include/xapian.h:80,
  661.                  from code/c++/support.cc:1:
  662. /usr/include/c++/5/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.
  663.  #error This file requires compiler and library support \
  664.   ^
  665. In file included from /usr/local/include/xapian.h:80:0,
  666.                  from code/c++/support.cc:1:
  667. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  668.      std::unordered_set<std::string> stop_words;
  669.           ^
  670. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  671. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  672.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  673.                                                    ^
  674. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  675. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  676.      void add(const std::string & word) { stop_words.insert(word); }
  677.                                           ^
  678. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  679. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  680.   return stop_words.find(term) != stop_words.end();
  681.          ^
  682. In file included from /usr/local/include/xapian.h:85:0,
  683.                  from code/c++/support.cc:1:
  684. /usr/local/include/xapian/cluster.h: At global scope:
  685. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  686.      std::unordered_map<std::string, doccount> termfreq;
  687.           ^
  688. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  689.      std::unordered_map<std::string, double> weights;
  690.           ^
  691. code/expected.out/index_ranges.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  692. --- tmp.out 2018-02-18 23:13:40.514539986 +0530
  693. +++ code/expected.out/index_ranges.out  2017-08-10 14:41:44.689029766 +0530
  694. @@ -1 +0,0 @@
  695. -sh: 2: code/c++/built/index_ranges: not found
  696. $ g++ `xapian-config --cxxflags` code/c++/index_ranges.cc code/c++/support.cc -o code/c++/built/index_ranges `xapian-config --libs`
  697. code/c++/built/index_ranges data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  698. $ cat tmp2.out >> tmp.out
  699. $ vimdiff tmp.out code/expected.out/index_ranges.out
  700. sh: 1: xapian-config: not found
  701. sh: 1: xapian-config: not found
  702. In file included from /usr/include/c++/5/unordered_set:35:0,
  703.                  from /usr/local/include/xapian/queryparser.h:37,
  704.                  from /usr/local/include/xapian.h:80,
  705.                  from code/c++/search_ranges.cc:1:
  706. /usr/include/c++/5/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.
  707.  #error This file requires compiler and library support \
  708.   ^
  709. In file included from /usr/local/include/xapian.h:80:0,
  710.                  from code/c++/search_ranges.cc:1:
  711. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  712.      std::unordered_set<std::string> stop_words;
  713.           ^
  714. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  715. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  716.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  717.                                                    ^
  718. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  719. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  720.      void add(const std::string & word) { stop_words.insert(word); }
  721.                                           ^
  722. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  723. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  724.   return stop_words.find(term) != stop_words.end();
  725.          ^
  726. In file included from /usr/local/include/xapian.h:85:0,
  727.                  from code/c++/search_ranges.cc:1:
  728. /usr/local/include/xapian/cluster.h: At global scope:
  729. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  730.      std::unordered_map<std::string, doccount> termfreq;
  731.           ^
  732. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  733.      std::unordered_map<std::string, double> weights;
  734.           ^
  735. In file included from /usr/include/c++/5/unordered_set:35:0,
  736.                  from /usr/local/include/xapian/queryparser.h:37,
  737.                  from /usr/local/include/xapian.h:80,
  738.                  from code/c++/support.cc:1:
  739. /usr/include/c++/5/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.
  740.  #error This file requires compiler and library support \
  741.   ^
  742. In file included from /usr/local/include/xapian.h:80:0,
  743.                  from code/c++/support.cc:1:
  744. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  745.      std::unordered_set<std::string> stop_words;
  746.           ^
  747. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  748. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  749.      SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  750.                                                    ^
  751. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  752. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  753.      void add(const std::string & word) { stop_words.insert(word); }
  754.                                           ^
  755. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  756. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  757.   return stop_words.find(term) != stop_words.end();
  758.          ^
  759. In file included from /usr/local/include/xapian.h:85:0,
  760.                  from code/c++/support.cc:1:
  761. /usr/local/include/xapian/cluster.h: At global scope:
  762. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  763.      std::unordered_map<std::string, doccount> termfreq;
  764.           ^
  765. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  766.      std::unordered_map<std::string, double> weights;
  767.           ^
  768. code/expected.out/search_ranges.db_..50mm.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  769. --- tmp.out 2018-02-18 23:13:40.918518303 +0530
  770. +++ code/expected.out/search_ranges.db_..50mm.out   2017-08-10 14:41:44.689029766 +0530
  771. @@ -1 +1,7 @@
  772. -sh: 2: code/c++/built/search_ranges: not found
  773. +1: #031 (1588) overall diameter: 50 mm
  774. +        Portable universal equinoctial sundial, in brass, signed "A
  775. +2: #073 (1701-1721) overall: 15 mm x 44.45 mm, weight: 0.055kg
  776. +        Universal pocket sundial
  777. +3: #074 (1596) overall: 13 mm x 44.45 mm x 44.45 mm, weight: 0.095kg
  778. +        Sundial, made as a locket, gilt metal, part silver
  779. +'..50mm'[0:10] = 31 73 74
  780. $ g++ `xapian-config --cxxflags` code/c++/search_ranges.cc code/c++/support.cc -o code/c++/built/search_ranges `xapian-config --libs`
  781. code/c++/built/search_ranges db ..50mm > tmp.out 2> tmp2.out
  782. $ cat tmp2.out >> tmp.out
  783. $ vimdiff tmp.out code/expected.out/search_ranges.db_..50mm.out
  784. sh: 1: xapian-config: not found
  785. sh: 1: xapian-config: not found
  786. In file included from /usr/include/c++/5/unordered_set:35:0,
  787.                 from /usr/local/include/xapian/queryparser.h:37,
  788.                 from /usr/local/include/xapian.h:80,
  789.                 from code/c++/search_ranges.cc:1:
  790. /usr/include/c++/5/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.
  791. #error This file requires compiler and library support \
  792.  ^
  793. In file included from /usr/local/include/xapian.h:80:0,
  794.                 from code/c++/search_ranges.cc:1:
  795. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  796.     std::unordered_set<std::string> stop_words;
  797.          ^
  798. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  799. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  800.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  801.                                                   ^
  802. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  803. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  804.     void add(const std::string & word) { stop_words.insert(word); }
  805.                                          ^
  806. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  807. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  808.  return stop_words.find(term) != stop_words.end();
  809.         ^
  810. In file included from /usr/local/include/xapian.h:85:0,
  811.                 from code/c++/search_ranges.cc:1:
  812. /usr/local/include/xapian/cluster.h: At global scope:
  813. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  814.     std::unordered_map<std::string, doccount> termfreq;
  815.          ^
  816. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  817.     std::unordered_map<std::string, double> weights;
  818.          ^
  819. In file included from /usr/include/c++/5/unordered_set:35:0,
  820.                 from /usr/local/include/xapian/queryparser.h:37,
  821.                 from /usr/local/include/xapian.h:80,
  822.                 from code/c++/support.cc:1:
  823. /usr/include/c++/5/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.
  824. #error This file requires compiler and library support \
  825.  ^
  826. In file included from /usr/local/include/xapian.h:80:0,
  827.                 from code/c++/support.cc:1:
  828. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  829.     std::unordered_set<std::string> stop_words;
  830.          ^
  831. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  832. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  833.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  834.                                                   ^
  835. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  836. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  837.     void add(const std::string & word) { stop_words.insert(word); }
  838.                                          ^
  839. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  840. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  841.  return stop_words.find(term) != stop_words.end();
  842.         ^
  843. In file included from /usr/local/include/xapian.h:85:0,
  844.                 from code/c++/support.cc:1:
  845. /usr/local/include/xapian/cluster.h: At global scope:
  846. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  847.     std::unordered_map<std::string, doccount> termfreq;
  848.          ^
  849. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  850.     std::unordered_map<std::string, double> weights;
  851.          ^
  852. code/expected.out/search_ranges.db_1980..1989.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  853. --- tmp.out 2018-02-18 23:13:41.306497506 +0530
  854. +++ code/expected.out/search_ranges.db_1980..1989.out   2017-08-10 14:41:44.689029766 +0530
  855. @@ -1 +1,5 @@
  856. -sh: 2: code/c++/built/search_ranges: not found
  857. +1: #050 (1984) overall: 105 mm x 75 mm x 57 mm,
  858. +        Quartz Analogue "no battery" wristwatch by Pulsar Quartz (CA
  859. +2: #051 (1984) overall: 85 mm x 65 mm x 38 mm,
  860. +        Analogue quartz clock with voice controlled alarm by Braun,
  861. +'1980..1989'[0:10] = 50 51
  862. $ g++ `xapian-config --cxxflags` code/c++/search_ranges.cc code/c++/support.cc -o code/c++/built/search_ranges `xapian-config --libs`
  863. code/c++/built/search_ranges db 1980..1989 > tmp.out 2> tmp2.out
  864. $ cat tmp2.out >> tmp.out
  865. $ vimdiff tmp.out code/expected.out/search_ranges.db_1980..1989.out
  866. sh: 1: xapian-config: not found
  867. sh: 1: xapian-config: not found
  868. In file included from /usr/include/c++/5/unordered_set:35:0,
  869.                 from /usr/local/include/xapian/queryparser.h:37,
  870.                 from /usr/local/include/xapian.h:80,
  871.                 from code/c++/search_ranges.cc:1:
  872. /usr/include/c++/5/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.
  873. #error This file requires compiler and library support \
  874.  ^
  875. In file included from /usr/local/include/xapian.h:80:0,
  876.                 from code/c++/search_ranges.cc:1:
  877. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  878.     std::unordered_set<std::string> stop_words;
  879.          ^
  880. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  881. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  882.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  883.                                                   ^
  884. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  885. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  886.     void add(const std::string & word) { stop_words.insert(word); }
  887.                                          ^
  888. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  889. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  890.  return stop_words.find(term) != stop_words.end();
  891.         ^
  892. In file included from /usr/local/include/xapian.h:85:0,
  893.                 from code/c++/search_ranges.cc:1:
  894. /usr/local/include/xapian/cluster.h: At global scope:
  895. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  896.     std::unordered_map<std::string, doccount> termfreq;
  897.          ^
  898. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  899.     std::unordered_map<std::string, double> weights;
  900.          ^
  901. In file included from /usr/include/c++/5/unordered_set:35:0,
  902.                 from /usr/local/include/xapian/queryparser.h:37,
  903.                 from /usr/local/include/xapian.h:80,
  904.                 from code/c++/support.cc:1:
  905. /usr/include/c++/5/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.
  906. #error This file requires compiler and library support \
  907.  ^
  908. In file included from /usr/local/include/xapian.h:80:0,
  909.                 from code/c++/support.cc:1:
  910. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  911.     std::unordered_set<std::string> stop_words;
  912.          ^
  913. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  914. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  915.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  916.                                                   ^
  917. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  918. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  919.     void add(const std::string & word) { stop_words.insert(word); }
  920.                                          ^
  921. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  922. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  923.  return stop_words.find(term) != stop_words.end();
  924.         ^
  925. In file included from /usr/local/include/xapian.h:85:0,
  926.                 from code/c++/support.cc:1:
  927. /usr/local/include/xapian/cluster.h: At global scope:
  928. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  929.     std::unordered_map<std::string, doccount> termfreq;
  930.          ^
  931. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  932.     std::unordered_map<std::string, double> weights;
  933.          ^
  934. code/expected.out/search_ranges.db_clock_1960...out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  935. --- tmp.out 2018-02-18 23:13:41.698476502 +0530
  936. +++ code/expected.out/search_ranges.db_clock_1960...out 2017-08-10 14:41:44.689029766 +0530
  937. @@ -1 +1,7 @@
  938. -sh: 2: code/c++/built/search_ranges: not found
  939. +1: #052 (1974) clock: 1185 x 780 mm, 122 kg; rewind unit: 460 x 640 x 350 mm
  940. +        Reconstruction of Dondi's Astronomical Clock, 1974
  941. +2: #051 (1984) overall: 85 mm x 65 mm x 38 mm,
  942. +        Analogue quartz clock with voice controlled alarm by Braun,
  943. +3: #009 (1973) overall: 380 mm x 300 mm x 192 mm, weight: 6.45kg
  944. +        Copy  of a Dwerrihouse skeleton clock with coup-perdu escape
  945. +'clock 1960..'[0:10] = 52 51 9
  946. $ g++ `xapian-config --cxxflags` code/c++/search_ranges.cc code/c++/support.cc -o code/c++/built/search_ranges `xapian-config --libs`
  947. code/c++/built/search_ranges db clock 1960.. > tmp.out 2> tmp2.out
  948. $ cat tmp2.out >> tmp.out
  949. $ vimdiff tmp.out code/expected.out/search_ranges.db_clock_1960...out
  950. sh: 1: xapian-config: not found
  951. sh: 1: xapian-config: not found
  952. In file included from /usr/include/c++/5/unordered_set:35:0,
  953.                 from /usr/local/include/xapian/queryparser.h:37,
  954.                 from /usr/local/include/xapian.h:80,
  955.                 from code/c++/search_ranges.cc:1:
  956. /usr/include/c++/5/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.
  957. #error This file requires compiler and library support \
  958.  ^
  959. In file included from /usr/local/include/xapian.h:80:0,
  960.                 from code/c++/search_ranges.cc:1:
  961. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  962.     std::unordered_set<std::string> stop_words;
  963.          ^
  964. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  965. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  966.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  967.                                                   ^
  968. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  969. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  970.     void add(const std::string & word) { stop_words.insert(word); }
  971.                                          ^
  972. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  973. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  974.  return stop_words.find(term) != stop_words.end();
  975.         ^
  976. In file included from /usr/local/include/xapian.h:85:0,
  977.                 from code/c++/search_ranges.cc:1:
  978. /usr/local/include/xapian/cluster.h: At global scope:
  979. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  980.     std::unordered_map<std::string, doccount> termfreq;
  981.          ^
  982. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  983.     std::unordered_map<std::string, double> weights;
  984.          ^
  985. In file included from /usr/include/c++/5/unordered_set:35:0,
  986.                 from /usr/local/include/xapian/queryparser.h:37,
  987.                 from /usr/local/include/xapian.h:80,
  988.                 from code/c++/support.cc:1:
  989. /usr/include/c++/5/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.
  990. #error This file requires compiler and library support \
  991.  ^
  992. In file included from /usr/local/include/xapian.h:80:0,
  993.                 from code/c++/support.cc:1:
  994. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  995.     std::unordered_set<std::string> stop_words;
  996.          ^
  997. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  998. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  999.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1000.                                                   ^
  1001. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1002. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1003.     void add(const std::string & word) { stop_words.insert(word); }
  1004.                                          ^
  1005. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1006. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1007.  return stop_words.find(term) != stop_words.end();
  1008.         ^
  1009. In file included from /usr/local/include/xapian.h:85:0,
  1010.                 from code/c++/support.cc:1:
  1011. /usr/local/include/xapian/cluster.h: At global scope:
  1012. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1013.     std::unordered_map<std::string, doccount> termfreq;
  1014.          ^
  1015. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1016.     std::unordered_map<std::string, double> weights;
  1017.          ^
  1018. code/expected.out/search_ranges.db_1000..mm_1800..1899.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1019. --- tmp.out 2018-02-18 23:13:42.090455507 +0530
  1020. +++ code/expected.out/search_ranges.db_1000..mm_1800..1899.out  2017-08-10 14:41:44.689029766 +0530
  1021. @@ -1 +1,3 @@
  1022. -sh: 2: code/c++/built/search_ranges: not found
  1023. +1: #024 (1845-1855) overall: 1850 mm x 350 mm x 250 mm
  1024. +        Regulator Clock with Gravity Escapement
  1025. +'1000..mm 1800..1899'[0:10] = 24
  1026. $ g++ `xapian-config --cxxflags` code/c++/search_ranges.cc code/c++/support.cc -o code/c++/built/search_ranges `xapian-config --libs`
  1027. code/c++/built/search_ranges db 1000..mm 1800..1899 > tmp.out 2> tmp2.out
  1028. $ cat tmp2.out >> tmp.out
  1029. $ vimdiff tmp.out code/expected.out/search_ranges.db_1000..mm_1800..1899.out
  1030. sh: 1: xapian-config: not found
  1031. sh: 1: xapian-config: not found
  1032. In file included from /usr/include/c++/5/unordered_set:35:0,
  1033.                 from /usr/local/include/xapian/queryparser.h:37,
  1034.                 from /usr/local/include/xapian.h:80,
  1035.                 from code/c++/index_ranges2.cc:1:
  1036. /usr/include/c++/5/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.
  1037. #error This file requires compiler and library support \
  1038.  ^
  1039. In file included from /usr/local/include/xapian.h:80:0,
  1040.                 from code/c++/index_ranges2.cc:1:
  1041. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1042.     std::unordered_set<std::string> stop_words;
  1043.          ^
  1044. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1045. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1046.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1047.                                                   ^
  1048. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1049. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1050.     void add(const std::string & word) { stop_words.insert(word); }
  1051.                                          ^
  1052. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1053. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1054.  return stop_words.find(term) != stop_words.end();
  1055.         ^
  1056. In file included from /usr/local/include/xapian.h:85:0,
  1057.                 from code/c++/index_ranges2.cc:1:
  1058. /usr/local/include/xapian/cluster.h: At global scope:
  1059. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1060.     std::unordered_map<std::string, doccount> termfreq;
  1061.          ^
  1062. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1063.     std::unordered_map<std::string, double> weights;
  1064.          ^
  1065. In file included from /usr/include/c++/5/unordered_set:35:0,
  1066.                 from /usr/local/include/xapian/queryparser.h:37,
  1067.                 from /usr/local/include/xapian.h:80,
  1068.                 from code/c++/support.cc:1:
  1069. /usr/include/c++/5/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.
  1070. #error This file requires compiler and library support \
  1071.  ^
  1072. In file included from /usr/local/include/xapian.h:80:0,
  1073.                 from code/c++/support.cc:1:
  1074. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1075.     std::unordered_set<std::string> stop_words;
  1076.          ^
  1077. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1078. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1079.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1080.                                                   ^
  1081. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1082. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1083.     void add(const std::string & word) { stop_words.insert(word); }
  1084.                                          ^
  1085. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1086. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1087.  return stop_words.find(term) != stop_words.end();
  1088.         ^
  1089. In file included from /usr/local/include/xapian.h:85:0,
  1090.                 from code/c++/support.cc:1:
  1091. /usr/local/include/xapian/cluster.h: At global scope:
  1092. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1093.     std::unordered_map<std::string, doccount> termfreq;
  1094.          ^
  1095. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1096.     std::unordered_map<std::string, double> weights;
  1097.          ^
  1098. code/expected.out/index_ranges2.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1099. --- tmp.out 2018-02-18 23:13:42.490434110 +0530
  1100. +++ code/expected.out/index_ranges2.out 2017-08-10 14:41:44.689029766 +0530
  1101. @@ -1 +0,0 @@
  1102. -sh: 2: code/c++/built/index_ranges2: not found
  1103. $ g++ `xapian-config --cxxflags` code/c++/index_ranges2.cc code/c++/support.cc -o code/c++/built/index_ranges2 `xapian-config --libs`
  1104. code/c++/built/index_ranges2 data/states.csv statesdb > tmp.out 2> tmp2.out
  1105. $ cat tmp2.out >> tmp.out
  1106. $ vimdiff tmp.out code/expected.out/index_ranges2.out
  1107. sh: 1: xapian-config: not found
  1108. sh: 1: xapian-config: not found
  1109. In file included from /usr/include/c++/5/unordered_set:35:0,
  1110.                 from /usr/local/include/xapian/queryparser.h:37,
  1111.                 from /usr/local/include/xapian.h:80,
  1112.                 from code/c++/search_ranges2.cc:1:
  1113. /usr/include/c++/5/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.
  1114. #error This file requires compiler and library support \
  1115.  ^
  1116. In file included from /usr/local/include/xapian.h:80:0,
  1117.                 from code/c++/search_ranges2.cc:1:
  1118. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1119.     std::unordered_set<std::string> stop_words;
  1120.          ^
  1121. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1122. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1123.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1124.                                                   ^
  1125. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1126. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1127.     void add(const std::string & word) { stop_words.insert(word); }
  1128.                                          ^
  1129. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1130. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1131.  return stop_words.find(term) != stop_words.end();
  1132.         ^
  1133. In file included from /usr/local/include/xapian.h:85:0,
  1134.                 from code/c++/search_ranges2.cc:1:
  1135. /usr/local/include/xapian/cluster.h: At global scope:
  1136. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1137.     std::unordered_map<std::string, doccount> termfreq;
  1138.          ^
  1139. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1140.     std::unordered_map<std::string, double> weights;
  1141.          ^
  1142. In file included from /usr/include/c++/5/unordered_set:35:0,
  1143.                 from /usr/local/include/xapian/queryparser.h:37,
  1144.                 from /usr/local/include/xapian.h:80,
  1145.                 from code/c++/support.cc:1:
  1146. /usr/include/c++/5/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.
  1147. #error This file requires compiler and library support \
  1148.  ^
  1149. In file included from /usr/local/include/xapian.h:80:0,
  1150.                 from code/c++/support.cc:1:
  1151. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1152.     std::unordered_set<std::string> stop_words;
  1153.          ^
  1154. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1155. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1156.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1157.                                                   ^
  1158. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1159. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1160.     void add(const std::string & word) { stop_words.insert(word); }
  1161.                                          ^
  1162. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1163. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1164.  return stop_words.find(term) != stop_words.end();
  1165.         ^
  1166. In file included from /usr/local/include/xapian.h:85:0,
  1167.                 from code/c++/support.cc:1:
  1168. /usr/local/include/xapian/cluster.h: At global scope:
  1169. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1170.     std::unordered_map<std::string, doccount> termfreq;
  1171.          ^
  1172. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1173.     std::unordered_map<std::string, double> weights;
  1174.          ^
  1175. code/expected.out/search_ranges2.statesdb_spanish.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1176. --- tmp.out 2018-02-18 23:13:42.898412286 +0530
  1177. +++ code/expected.out/search_ranges2.statesdb_spanish.out   2017-08-10 14:41:44.689029766 +0530
  1178. @@ -1 +1,5 @@
  1179. -sh: 2: code/c++/built/search_ranges2: not found
  1180. +1: #004 State of Montana November 8, 1889
  1181. +        Population 989,415
  1182. +2: #019 State of Texas December 29, 1845
  1183. +        Population 25,145,561
  1184. +'spanish'[0:10] = 4 19
  1185. $ g++ `xapian-config --cxxflags` code/c++/search_ranges2.cc code/c++/support.cc -o code/c++/built/search_ranges2 `xapian-config --libs`
  1186. code/c++/built/search_ranges2 statesdb spanish > tmp.out 2> tmp2.out
  1187. $ cat tmp2.out >> tmp.out
  1188. $ vimdiff tmp.out code/expected.out/search_ranges2.statesdb_spanish.out
  1189. sh: 1: xapian-config: not found
  1190. sh: 1: xapian-config: not found
  1191. In file included from /usr/include/c++/5/unordered_set:35:0,
  1192.                 from /usr/local/include/xapian/queryparser.h:37,
  1193.                 from /usr/local/include/xapian.h:80,
  1194.                 from code/c++/search_ranges2.cc:1:
  1195. /usr/include/c++/5/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.
  1196. #error This file requires compiler and library support \
  1197.  ^
  1198. In file included from /usr/local/include/xapian.h:80:0,
  1199.                 from code/c++/search_ranges2.cc:1:
  1200. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1201.     std::unordered_set<std::string> stop_words;
  1202.          ^
  1203. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1204. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1205.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1206.                                                   ^
  1207. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1208. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1209.     void add(const std::string & word) { stop_words.insert(word); }
  1210.                                          ^
  1211. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1212. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1213.  return stop_words.find(term) != stop_words.end();
  1214.         ^
  1215. In file included from /usr/local/include/xapian.h:85:0,
  1216.                 from code/c++/search_ranges2.cc:1:
  1217. /usr/local/include/xapian/cluster.h: At global scope:
  1218. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1219.     std::unordered_map<std::string, doccount> termfreq;
  1220.          ^
  1221. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1222.     std::unordered_map<std::string, double> weights;
  1223.          ^
  1224. In file included from /usr/include/c++/5/unordered_set:35:0,
  1225.                 from /usr/local/include/xapian/queryparser.h:37,
  1226.                 from /usr/local/include/xapian.h:80,
  1227.                 from code/c++/support.cc:1:
  1228. /usr/include/c++/5/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.
  1229. #error This file requires compiler and library support \
  1230.  ^
  1231. In file included from /usr/local/include/xapian.h:80:0,
  1232.                 from code/c++/support.cc:1:
  1233. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1234.     std::unordered_set<std::string> stop_words;
  1235.          ^
  1236. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1237. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1238.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1239.                                                   ^
  1240. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1241. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1242.     void add(const std::string & word) { stop_words.insert(word); }
  1243.                                          ^
  1244. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1245. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1246.  return stop_words.find(term) != stop_words.end();
  1247.         ^
  1248. In file included from /usr/local/include/xapian.h:85:0,
  1249.                 from code/c++/support.cc:1:
  1250. /usr/local/include/xapian/cluster.h: At global scope:
  1251. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1252.     std::unordered_map<std::string, doccount> termfreq;
  1253.          ^
  1254. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1255.     std::unordered_map<std::string, double> weights;
  1256.          ^
  1257. code/expected.out/search_ranges2.statesdb_1800..1899.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1258. --- tmp.out 2018-02-18 23:13:43.294391129 +0530
  1259. +++ code/expected.out/search_ranges2.statesdb_1800..1899.out    2017-08-10 14:41:44.689029766 +0530
  1260. @@ -1 +1,21 @@
  1261. -sh: 2: code/c++/built/search_ranges2: not found
  1262. +1: #001 State of Washington November 11, 1889
  1263. +        Population 6,744,496
  1264. +2: #002 State of Arkansas June 15, 1836
  1265. +        Population 2,915,918
  1266. +3: #003 State of Oregon February 14, 1859
  1267. +        Population 3,831,074
  1268. +4: #004 State of Montana November 8, 1889
  1269. +        Population 989,415
  1270. +5: #005 Idaho July 3, 1890
  1271. +        Population 1,567,582
  1272. +6: #006 State of Nevada October 31, 1864
  1273. +        Population 2,700,551
  1274. +7: #007 State of California September 9, 1850
  1275. +        Population 37,253,956
  1276. +8: #009 State of Utah January 4, 1896
  1277. +        Population 2,763,885
  1278. +9: #010 State of Wyoming July 10, 1890
  1279. +        Population 563,626
  1280. +10: #011 State of Colorado August 1, 1876
  1281. +        Population 5,029,196
  1282. +'1800..1899'[0:10] = 1 2 3 4 5 6 7 9 10 11
  1283. $ g++ `xapian-config --cxxflags` code/c++/search_ranges2.cc code/c++/support.cc -o code/c++/built/search_ranges2 `xapian-config --libs`
  1284. code/c++/built/search_ranges2 statesdb 1800..1899 > tmp.out 2> tmp2.out
  1285. $ cat tmp2.out >> tmp.out
  1286. $ vimdiff tmp.out code/expected.out/search_ranges2.statesdb_1800..1899.out
  1287. sh: 1: xapian-config: not found
  1288. sh: 1: xapian-config: not found
  1289. In file included from /usr/include/c++/5/unordered_set:35:0,
  1290.                 from /usr/local/include/xapian/queryparser.h:37,
  1291.                 from /usr/local/include/xapian.h:80,
  1292.                 from code/c++/search_ranges2.cc:1:
  1293. /usr/include/c++/5/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.
  1294. #error This file requires compiler and library support \
  1295.  ^
  1296. In file included from /usr/local/include/xapian.h:80:0,
  1297.                 from code/c++/search_ranges2.cc:1:
  1298. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1299.     std::unordered_set<std::string> stop_words;
  1300.          ^
  1301. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1302. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1303.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1304.                                                   ^
  1305. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1306. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1307.     void add(const std::string & word) { stop_words.insert(word); }
  1308.                                          ^
  1309. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1310. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1311.  return stop_words.find(term) != stop_words.end();
  1312.         ^
  1313. In file included from /usr/local/include/xapian.h:85:0,
  1314.                 from code/c++/search_ranges2.cc:1:
  1315. /usr/local/include/xapian/cluster.h: At global scope:
  1316. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1317.     std::unordered_map<std::string, doccount> termfreq;
  1318.          ^
  1319. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1320.     std::unordered_map<std::string, double> weights;
  1321.          ^
  1322. In file included from /usr/include/c++/5/unordered_set:35:0,
  1323.                 from /usr/local/include/xapian/queryparser.h:37,
  1324.                 from /usr/local/include/xapian.h:80,
  1325.                 from code/c++/support.cc:1:
  1326. /usr/include/c++/5/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.
  1327. #error This file requires compiler and library support \
  1328.  ^
  1329. In file included from /usr/local/include/xapian.h:80:0,
  1330.                 from code/c++/support.cc:1:
  1331. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1332.     std::unordered_set<std::string> stop_words;
  1333.          ^
  1334. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1335. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1336.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1337.                                                   ^
  1338. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1339. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1340.     void add(const std::string & word) { stop_words.insert(word); }
  1341.                                          ^
  1342. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1343. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1344.  return stop_words.find(term) != stop_words.end();
  1345.         ^
  1346. In file included from /usr/local/include/xapian.h:85:0,
  1347.                 from code/c++/support.cc:1:
  1348. /usr/local/include/xapian/cluster.h: At global scope:
  1349. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1350.     std::unordered_map<std::string, doccount> termfreq;
  1351.          ^
  1352. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1353.     std::unordered_map<std::string, double> weights;
  1354.          ^
  1355. code/expected.out/search_ranges2.statesdb_11=2f08=2f1889..07=2f10=2f1890.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1356. --- tmp.out 2018-02-18 23:13:43.686370195 +0530
  1357. +++ code/expected.out/search_ranges2.statesdb_11=2f08=2f1889..07=2f10=2f1890.out    2017-08-10 14:41:44.689029766 +0530
  1358. @@ -1 +1,9 @@
  1359. -sh: 2: code/c++/built/search_ranges2: not found
  1360. +1: #001 State of Washington November 11, 1889
  1361. +        Population 6,744,496
  1362. +2: #004 State of Montana November 8, 1889
  1363. +        Population 989,415
  1364. +3: #005 Idaho July 3, 1890
  1365. +        Population 1,567,582
  1366. +4: #010 State of Wyoming July 10, 1890
  1367. +        Population 563,626
  1368. +'11/08/1889..07/10/1890'[0:10] = 1 4 5 10
  1369. $ g++ `xapian-config --cxxflags` code/c++/search_ranges2.cc code/c++/support.cc -o code/c++/built/search_ranges2 `xapian-config --libs`
  1370. code/c++/built/search_ranges2 statesdb 11/08/1889..07/10/1890 > tmp.out 2> tmp2.out
  1371. $ cat tmp2.out >> tmp.out
  1372. $ vimdiff tmp.out code/expected.out/search_ranges2.statesdb_11=2f08=2f1889..07=2f10=2f1890.out
  1373. sh: 1: xapian-config: not found
  1374. sh: 1: xapian-config: not found
  1375. In file included from /usr/include/c++/5/unordered_set:35:0,
  1376.                 from /usr/local/include/xapian/queryparser.h:37,
  1377.                 from /usr/local/include/xapian.h:80,
  1378.                 from code/c++/search_ranges2.cc:1:
  1379. /usr/include/c++/5/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.
  1380. #error This file requires compiler and library support \
  1381.  ^
  1382. In file included from /usr/local/include/xapian.h:80:0,
  1383.                 from code/c++/search_ranges2.cc:1:
  1384. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1385.     std::unordered_set<std::string> stop_words;
  1386.          ^
  1387. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1388. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1389.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1390.                                                   ^
  1391. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1392. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1393.     void add(const std::string & word) { stop_words.insert(word); }
  1394.                                          ^
  1395. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1396. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1397.  return stop_words.find(term) != stop_words.end();
  1398.         ^
  1399. In file included from /usr/local/include/xapian.h:85:0,
  1400.                 from code/c++/search_ranges2.cc:1:
  1401. /usr/local/include/xapian/cluster.h: At global scope:
  1402. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1403.     std::unordered_map<std::string, doccount> termfreq;
  1404.          ^
  1405. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1406.     std::unordered_map<std::string, double> weights;
  1407.          ^
  1408. In file included from /usr/include/c++/5/unordered_set:35:0,
  1409.                 from /usr/local/include/xapian/queryparser.h:37,
  1410.                 from /usr/local/include/xapian.h:80,
  1411.                 from code/c++/support.cc:1:
  1412. /usr/include/c++/5/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.
  1413. #error This file requires compiler and library support \
  1414.  ^
  1415. In file included from /usr/local/include/xapian.h:80:0,
  1416.                 from code/c++/support.cc:1:
  1417. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1418.     std::unordered_set<std::string> stop_words;
  1419.          ^
  1420. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1421. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1422.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1423.                                                   ^
  1424. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1425. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1426.     void add(const std::string & word) { stop_words.insert(word); }
  1427.                                          ^
  1428. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1429. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1430.  return stop_words.find(term) != stop_words.end();
  1431.         ^
  1432. In file included from /usr/local/include/xapian.h:85:0,
  1433.                 from code/c++/support.cc:1:
  1434. /usr/local/include/xapian/cluster.h: At global scope:
  1435. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1436.     std::unordered_map<std::string, doccount> termfreq;
  1437.          ^
  1438. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1439.     std::unordered_map<std::string, double> weights;
  1440.          ^
  1441. code/expected.out/search_ranges2.statesdb_10000000...out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1442. --- tmp.out 2018-02-18 23:13:44.094348415 +0530
  1443. +++ code/expected.out/search_ranges2.statesdb_10000000...out    2017-08-10 14:41:44.689029766 +0530
  1444. @@ -1 +1,15 @@
  1445. -sh: 2: code/c++/built/search_ranges2: not found
  1446. +1: #007 State of California September 9, 1850
  1447. +        Population 37,253,956
  1448. +2: #019 State of Texas December 29, 1845
  1449. +        Population 25,145,561
  1450. +3: #027 State of Illinois December 3, 1818
  1451. +        Population 12,830,632
  1452. +4: #030 State of Ohio March 1, 1803
  1453. +        Population 11,536,504
  1454. +5: #035 State of Florida March 3, 1845
  1455. +        Population 18,801,310
  1456. +6: #040 Commonwealth of Pennsylvania December 12, 1787
  1457. +        Population 12,702,379
  1458. +7: #041 State of New York July 26, 1788
  1459. +        Population 19,378,102
  1460. +'10000000..'[0:10] = 7 19 27 30 35 40 41
  1461. $ g++ `xapian-config --cxxflags` code/c++/search_ranges2.cc code/c++/support.cc -o code/c++/built/search_ranges2 `xapian-config --libs`
  1462. code/c++/built/search_ranges2 statesdb 10000000.. > tmp.out 2> tmp2.out
  1463. $ cat tmp2.out >> tmp.out
  1464. $ vimdiff tmp.out code/expected.out/search_ranges2.statesdb_10000000...out
  1465. sh: 1: xapian-config: not found
  1466. sh: 1: xapian-config: not found
  1467. In file included from /usr/include/c++/5/unordered_set:35:0,
  1468.                 from /usr/local/include/xapian/queryparser.h:37,
  1469.                 from /usr/local/include/xapian.h:80,
  1470.                 from code/c++/search_ranges2.cc:1:
  1471. /usr/include/c++/5/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.
  1472. #error This file requires compiler and library support \
  1473.  ^
  1474. In file included from /usr/local/include/xapian.h:80:0,
  1475.                 from code/c++/search_ranges2.cc:1:
  1476. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1477.     std::unordered_set<std::string> stop_words;
  1478.          ^
  1479. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1480. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1481.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1482.                                                   ^
  1483. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1484. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1485.     void add(const std::string & word) { stop_words.insert(word); }
  1486.                                          ^
  1487. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1488. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1489.  return stop_words.find(term) != stop_words.end();
  1490.         ^
  1491. In file included from /usr/local/include/xapian.h:85:0,
  1492.                 from code/c++/search_ranges2.cc:1:
  1493. /usr/local/include/xapian/cluster.h: At global scope:
  1494. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1495.     std::unordered_map<std::string, doccount> termfreq;
  1496.          ^
  1497. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1498.     std::unordered_map<std::string, double> weights;
  1499.          ^
  1500. In file included from /usr/include/c++/5/unordered_set:35:0,
  1501.                 from /usr/local/include/xapian/queryparser.h:37,
  1502.                 from /usr/local/include/xapian.h:80,
  1503.                 from code/c++/support.cc:1:
  1504. /usr/include/c++/5/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.
  1505. #error This file requires compiler and library support \
  1506.  ^
  1507. In file included from /usr/local/include/xapian.h:80:0,
  1508.                 from code/c++/support.cc:1:
  1509. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1510.     std::unordered_set<std::string> stop_words;
  1511.          ^
  1512. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1513. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1514.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1515.                                                   ^
  1516. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1517. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1518.     void add(const std::string & word) { stop_words.insert(word); }
  1519.                                          ^
  1520. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1521. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1522.  return stop_words.find(term) != stop_words.end();
  1523.         ^
  1524. In file included from /usr/local/include/xapian.h:85:0,
  1525.                 from code/c++/support.cc:1:
  1526. /usr/local/include/xapian/cluster.h: At global scope:
  1527. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1528.     std::unordered_map<std::string, doccount> termfreq;
  1529.          ^
  1530. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1531.     std::unordered_map<std::string, double> weights;
  1532.          ^
  1533. code/expected.out/search_ranges2.statesdb_1780..1789_10000000...out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst): Exit status 32512, expected 0
  1534. --- tmp.out 2018-02-18 23:13:44.486327515 +0530
  1535. +++ code/expected.out/search_ranges2.statesdb_1780..1789_10000000...out 2017-08-10 14:41:44.689029766 +0530
  1536. @@ -1 +1,5 @@
  1537. -sh: 2: code/c++/built/search_ranges2: not found
  1538. +1: #040 Commonwealth of Pennsylvania December 12, 1787
  1539. +        Population 12,702,379
  1540. +2: #041 State of New York July 26, 1788
  1541. +        Population 19,378,102
  1542. +'1780..1789 10000000..'[0:10] = 40 41
  1543. $ g++ `xapian-config --cxxflags` code/c++/search_ranges2.cc code/c++/support.cc -o code/c++/built/search_ranges2 `xapian-config --libs`
  1544. code/c++/built/search_ranges2 statesdb 1780..1789 10000000.. > tmp.out 2> tmp2.out
  1545. $ cat tmp2.out >> tmp.out
  1546. $ vimdiff tmp.out code/expected.out/search_ranges2.statesdb_1780..1789_10000000...out
  1547. sh: 1: xapian-config: not found
  1548. sh: 1: xapian-config: not found
  1549. In file included from /usr/include/c++/5/unordered_set:35:0,
  1550.                 from /usr/local/include/xapian/queryparser.h:37,
  1551.                 from /usr/local/include/xapian.h:80,
  1552.                 from code/c++/index_ranges2.cc:1:
  1553. /usr/include/c++/5/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.
  1554. #error This file requires compiler and library support \
  1555.  ^
  1556. In file included from /usr/local/include/xapian.h:80:0,
  1557.                 from code/c++/index_ranges2.cc:1:
  1558. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1559.     std::unordered_set<std::string> stop_words;
  1560.          ^
  1561. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1562. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1563.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1564.                                                   ^
  1565. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1566. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1567.     void add(const std::string & word) { stop_words.insert(word); }
  1568.                                          ^
  1569. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1570. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1571.  return stop_words.find(term) != stop_words.end();
  1572.         ^
  1573. In file included from /usr/local/include/xapian.h:85:0,
  1574.                 from code/c++/index_ranges2.cc:1:
  1575. /usr/local/include/xapian/cluster.h: At global scope:
  1576. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1577.     std::unordered_map<std::string, doccount> termfreq;
  1578.          ^
  1579. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1580.     std::unordered_map<std::string, double> weights;
  1581.          ^
  1582. In file included from /usr/include/c++/5/unordered_set:35:0,
  1583.                 from /usr/local/include/xapian/queryparser.h:37,
  1584.                 from /usr/local/include/xapian.h:80,
  1585.                 from code/c++/support.cc:1:
  1586. /usr/include/c++/5/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.
  1587. #error This file requires compiler and library support \
  1588.  ^
  1589. In file included from /usr/local/include/xapian.h:80:0,
  1590.                 from code/c++/support.cc:1:
  1591. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1592.     std::unordered_set<std::string> stop_words;
  1593.          ^
  1594. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1595. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1596.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1597.                                                   ^
  1598. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1599. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1600.     void add(const std::string & word) { stop_words.insert(word); }
  1601.                                          ^
  1602. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1603. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1604.  return stop_words.find(term) != stop_words.end();
  1605.         ^
  1606. In file included from /usr/local/include/xapian.h:85:0,
  1607.                 from code/c++/support.cc:1:
  1608. /usr/local/include/xapian/cluster.h: At global scope:
  1609. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1610.     std::unordered_map<std::string, doccount> termfreq;
  1611.          ^
  1612. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1613.     std::unordered_map<std::string, double> weights;
  1614.          ^
  1615. code/expected.out/index_ranges2.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/sorting.rst): Exit status 32512, expected 0
  1616. --- tmp.out 2018-02-18 23:13:44.902305336 +0530
  1617. +++ code/expected.out/index_ranges2.out 2017-08-10 14:41:44.689029766 +0530
  1618. @@ -1 +0,0 @@
  1619. -sh: 2: code/c++/built/index_ranges2: not found
  1620. $ g++ `xapian-config --cxxflags` code/c++/index_ranges2.cc code/c++/support.cc -o code/c++/built/index_ranges2 `xapian-config --libs`
  1621. code/c++/built/index_ranges2 data/states.csv statesdb > tmp.out 2> tmp2.out
  1622. $ cat tmp2.out >> tmp.out
  1623. $ vimdiff tmp.out code/expected.out/index_ranges2.out
  1624. sh: 1: xapian-config: not found
  1625. sh: 1: xapian-config: not found
  1626. In file included from /usr/include/c++/5/unordered_set:35:0,
  1627.                 from /usr/local/include/xapian/queryparser.h:37,
  1628.                 from /usr/local/include/xapian.h:80,
  1629.                 from code/c++/search_sorting.cc:1:
  1630. /usr/include/c++/5/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.
  1631. #error This file requires compiler and library support \
  1632.  ^
  1633. In file included from /usr/local/include/xapian.h:80:0,
  1634.                 from code/c++/search_sorting.cc:1:
  1635. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1636.     std::unordered_set<std::string> stop_words;
  1637.          ^
  1638. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1639. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1640.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1641.                                                   ^
  1642. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1643. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1644.     void add(const std::string & word) { stop_words.insert(word); }
  1645.                                          ^
  1646. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1647. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1648.  return stop_words.find(term) != stop_words.end();
  1649.         ^
  1650. In file included from /usr/local/include/xapian.h:85:0,
  1651.                 from code/c++/search_sorting.cc:1:
  1652. /usr/local/include/xapian/cluster.h: At global scope:
  1653. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1654.     std::unordered_map<std::string, doccount> termfreq;
  1655.          ^
  1656. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1657.     std::unordered_map<std::string, double> weights;
  1658.          ^
  1659. In file included from /usr/include/c++/5/unordered_set:35:0,
  1660.                 from /usr/local/include/xapian/queryparser.h:37,
  1661.                 from /usr/local/include/xapian.h:80,
  1662.                 from code/c++/support.cc:1:
  1663. /usr/include/c++/5/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.
  1664. #error This file requires compiler and library support \
  1665.  ^
  1666. In file included from /usr/local/include/xapian.h:80:0,
  1667.                 from code/c++/support.cc:1:
  1668. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1669.     std::unordered_set<std::string> stop_words;
  1670.          ^
  1671. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1672. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1673.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1674.                                                   ^
  1675. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1676. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1677.     void add(const std::string & word) { stop_words.insert(word); }
  1678.                                          ^
  1679. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1680. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1681.  return stop_words.find(term) != stop_words.end();
  1682.         ^
  1683. In file included from /usr/local/include/xapian.h:85:0,
  1684.                 from code/c++/support.cc:1:
  1685. /usr/local/include/xapian/cluster.h: At global scope:
  1686. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1687.     std::unordered_map<std::string, doccount> termfreq;
  1688.          ^
  1689. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1690.     std::unordered_map<std::string, double> weights;
  1691.          ^
  1692. code/expected.out/search_sorting.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/sorting.rst): Exit status 32512, expected 0
  1693. --- tmp.out 2018-02-18 23:13:45.290284676 +0530
  1694. +++ code/expected.out/search_sorting.out    2017-08-10 14:41:44.689029766 +0530
  1695. @@ -1 +1,5 @@
  1696. -sh: 2: code/c++/built/search_sorting: not found
  1697. +1: #019 State of Texas December 29, 1845
  1698. +        Population 25,145,561
  1699. +2: #004 State of Montana November 8, 1889
  1700. +        Population 989,415
  1701. +'spanish'[0:10] = 19 4
  1702. $ g++ `xapian-config --cxxflags` code/c++/search_sorting.cc code/c++/support.cc -o code/c++/built/search_sorting `xapian-config --libs`
  1703. code/c++/built/search_sorting statesdb spanish > tmp.out 2> tmp2.out
  1704. $ cat tmp2.out >> tmp.out
  1705. $ vimdiff tmp.out code/expected.out/search_sorting.out
  1706. sh: 1: xapian-config: not found
  1707. sh: 1: xapian-config: not found
  1708. In file included from /usr/include/c++/5/unordered_set:35:0,
  1709.                 from /usr/local/include/xapian/queryparser.h:37,
  1710.                 from /usr/local/include/xapian.h:80,
  1711.                 from code/c++/search_sorting2.cc:1:
  1712. /usr/include/c++/5/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.
  1713. #error This file requires compiler and library support \
  1714.  ^
  1715. In file included from /usr/local/include/xapian.h:80:0,
  1716.                 from code/c++/search_sorting2.cc:1:
  1717. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1718.     std::unordered_set<std::string> stop_words;
  1719.          ^
  1720. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1721. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1722.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1723.                                                   ^
  1724. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1725. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1726.     void add(const std::string & word) { stop_words.insert(word); }
  1727.                                          ^
  1728. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1729. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1730.  return stop_words.find(term) != stop_words.end();
  1731.         ^
  1732. In file included from /usr/local/include/xapian.h:85:0,
  1733.                 from code/c++/search_sorting2.cc:1:
  1734. /usr/local/include/xapian/cluster.h: At global scope:
  1735. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1736.     std::unordered_map<std::string, doccount> termfreq;
  1737.          ^
  1738. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1739.     std::unordered_map<std::string, double> weights;
  1740.          ^
  1741. In file included from /usr/include/c++/5/unordered_set:35:0,
  1742.                 from /usr/local/include/xapian/queryparser.h:37,
  1743.                 from /usr/local/include/xapian.h:80,
  1744.                 from code/c++/support.cc:1:
  1745. /usr/include/c++/5/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.
  1746. #error This file requires compiler and library support \
  1747.  ^
  1748. In file included from /usr/local/include/xapian.h:80:0,
  1749.                 from code/c++/support.cc:1:
  1750. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1751.     std::unordered_set<std::string> stop_words;
  1752.          ^
  1753. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1754. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1755.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1756.                                                   ^
  1757. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1758. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1759.     void add(const std::string & word) { stop_words.insert(word); }
  1760.                                          ^
  1761. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1762. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1763.  return stop_words.find(term) != stop_words.end();
  1764.         ^
  1765. In file included from /usr/local/include/xapian.h:85:0,
  1766.                 from code/c++/support.cc:1:
  1767. /usr/local/include/xapian/cluster.h: At global scope:
  1768. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1769.     std::unordered_map<std::string, doccount> termfreq;
  1770.          ^
  1771. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1772.     std::unordered_map<std::string, double> weights;
  1773.          ^
  1774. code/expected.out/search_sorting2.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/sorting.rst): Exit status 32512, expected 0
  1775. --- tmp.out 2018-02-18 23:13:45.686263598 +0530
  1776. +++ code/expected.out/search_sorting2.out   2017-08-10 14:41:44.689029766 +0530
  1777. @@ -1 +1,21 @@
  1778. -sh: 2: code/c++/built/search_sorting2: not found
  1779. +1: #040 Commonwealth of Pennsylvania December 12, 1787
  1780. +        Population 12,702,379
  1781. +2: #043 State of New Jersey December 18, 1787
  1782. +        Population 8,791,894
  1783. +3: #049 State of Delaware December 7, 1787
  1784. +        Population 897,934
  1785. +4: #041 State of New York July 26, 1788
  1786. +        Population 19,378,102
  1787. +5: #034 State of Georgia January 2, 1788
  1788. +        Population 9,687,653
  1789. +6: #038 Commonwealth of Virginia June 25, 1788
  1790. +        Population 8,001,024
  1791. +7: #046 Commonwealth of Massachusetts February 6, 1788
  1792. +        Population 6,547,629
  1793. +8: #050 State of Maryland April 28, 1788
  1794. +        Population 5,773,552
  1795. +9: #036 State of South Carolina May 23, 1788
  1796. +        Population 4,625,384
  1797. +10: #048 State of Connecticut January 9, 1788
  1798. +        Population 3,574,097
  1799. +'State'[0:10] = 40 43 49 41 34 38 46 50 36 48
  1800. $ g++ `xapian-config --cxxflags` code/c++/search_sorting2.cc code/c++/support.cc -o code/c++/built/search_sorting2 `xapian-config --libs`
  1801. code/c++/built/search_sorting2 statesdb State > tmp.out 2> tmp2.out
  1802. $ cat tmp2.out >> tmp.out
  1803. $ vimdiff tmp.out code/expected.out/search_sorting2.out
  1804. sh: 1: xapian-config: not found
  1805. sh: 1: xapian-config: not found
  1806. In file included from /usr/include/c++/5/unordered_set:35:0,
  1807.                 from /usr/local/include/xapian/queryparser.h:37,
  1808.                 from /usr/local/include/xapian.h:80,
  1809.                 from code/c++/index_values_with_geo.cc:1:
  1810. /usr/include/c++/5/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.
  1811. #error This file requires compiler and library support \
  1812.  ^
  1813. In file included from /usr/local/include/xapian.h:80:0,
  1814.                 from code/c++/index_values_with_geo.cc:1:
  1815. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1816.     std::unordered_set<std::string> stop_words;
  1817.          ^
  1818. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1819. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1820.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1821.                                                   ^
  1822. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1823. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1824.     void add(const std::string & word) { stop_words.insert(word); }
  1825.                                          ^
  1826. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1827. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1828.  return stop_words.find(term) != stop_words.end();
  1829.         ^
  1830. In file included from /usr/local/include/xapian.h:85:0,
  1831.                 from code/c++/index_values_with_geo.cc:1:
  1832. /usr/local/include/xapian/cluster.h: At global scope:
  1833. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1834.     std::unordered_map<std::string, doccount> termfreq;
  1835.          ^
  1836. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1837.     std::unordered_map<std::string, double> weights;
  1838.          ^
  1839. In file included from /usr/include/c++/5/unordered_set:35:0,
  1840.                 from /usr/local/include/xapian/queryparser.h:37,
  1841.                 from /usr/local/include/xapian.h:80,
  1842.                 from code/c++/support.cc:1:
  1843. /usr/include/c++/5/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.
  1844. #error This file requires compiler and library support \
  1845.  ^
  1846. In file included from /usr/local/include/xapian.h:80:0,
  1847.                 from code/c++/support.cc:1:
  1848. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1849.     std::unordered_set<std::string> stop_words;
  1850.          ^
  1851. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1852. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1853.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1854.                                                   ^
  1855. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1856. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1857.     void add(const std::string & word) { stop_words.insert(word); }
  1858.                                          ^
  1859. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1860. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1861.  return stop_words.find(term) != stop_words.end();
  1862.         ^
  1863. In file included from /usr/local/include/xapian.h:85:0,
  1864.                 from code/c++/support.cc:1:
  1865. /usr/local/include/xapian/cluster.h: At global scope:
  1866. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1867.     std::unordered_map<std::string, doccount> termfreq;
  1868.          ^
  1869. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1870.     std::unordered_map<std::string, double> weights;
  1871.          ^
  1872. code/expected.out/index_values_with_geo.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/sorting.rst): Exit status 32512, expected 0
  1873. --- tmp.out 2018-02-18 23:13:46.090242103 +0530
  1874. +++ code/expected.out/index_values_with_geo.out 2017-08-10 14:41:44.689029766 +0530
  1875. @@ -1 +0,0 @@
  1876. -sh: 2: code/c++/built/index_values_with_geo: not found
  1877. $ g++ `xapian-config --cxxflags` code/c++/index_values_with_geo.cc code/c++/support.cc -o code/c++/built/index_values_with_geo `xapian-config --libs`
  1878. code/c++/built/index_values_with_geo data/states.csv statesdb > tmp.out 2> tmp2.out
  1879. $ cat tmp2.out >> tmp.out
  1880. $ vimdiff tmp.out code/expected.out/index_values_with_geo.out
  1881. sh: 1: xapian-config: not found
  1882. sh: 1: xapian-config: not found
  1883. In file included from /usr/include/c++/5/unordered_set:35:0,
  1884.                 from /usr/local/include/xapian/queryparser.h:37,
  1885.                 from /usr/local/include/xapian.h:80,
  1886.                 from code/c++/search_sorting3.cc:1:
  1887. /usr/include/c++/5/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.
  1888. #error This file requires compiler and library support \
  1889.  ^
  1890. In file included from /usr/local/include/xapian.h:80:0,
  1891.                 from code/c++/search_sorting3.cc:1:
  1892. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1893.     std::unordered_set<std::string> stop_words;
  1894.          ^
  1895. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1896. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1897.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1898.                                                   ^
  1899. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1900. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1901.     void add(const std::string & word) { stop_words.insert(word); }
  1902.                                          ^
  1903. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1904. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1905.  return stop_words.find(term) != stop_words.end();
  1906.         ^
  1907. In file included from /usr/local/include/xapian.h:85:0,
  1908.                 from code/c++/search_sorting3.cc:1:
  1909. /usr/local/include/xapian/cluster.h: At global scope:
  1910. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1911.     std::unordered_map<std::string, doccount> termfreq;
  1912.          ^
  1913. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1914.     std::unordered_map<std::string, double> weights;
  1915.          ^
  1916. code/c++/search_sorting3.cc: In member function ‘virtual std::__cxx11::string search(const string&, const string&, Xapian::doccount, Xapian::doccount)::DistanceKeyMaker::operator()(const Xapian::Document&) const’:
  1917. code/c++/search_sorting3.cc:43:45: error: ‘atof’ was not declared in this scope
  1918.             double lat = atof(latlon.c_str());
  1919.                                             ^
  1920. In file included from /usr/include/c++/5/unordered_set:35:0,
  1921.                 from /usr/local/include/xapian/queryparser.h:37,
  1922.                 from /usr/local/include/xapian.h:80,
  1923.                 from code/c++/support.cc:1:
  1924. /usr/include/c++/5/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.
  1925. #error This file requires compiler and library support \
  1926.  ^
  1927. In file included from /usr/local/include/xapian.h:80:0,
  1928.                 from code/c++/support.cc:1:
  1929. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1930.     std::unordered_set<std::string> stop_words;
  1931.          ^
  1932. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1933. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1934.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  1935.                                                   ^
  1936. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  1937. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  1938.     void add(const std::string & word) { stop_words.insert(word); }
  1939.                                          ^
  1940. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  1941. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  1942.  return stop_words.find(term) != stop_words.end();
  1943.         ^
  1944. In file included from /usr/local/include/xapian.h:85:0,
  1945.                 from code/c++/support.cc:1:
  1946. /usr/local/include/xapian/cluster.h: At global scope:
  1947. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1948.     std::unordered_map<std::string, doccount> termfreq;
  1949.          ^
  1950. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  1951.     std::unordered_map<std::string, double> weights;
  1952.          ^
  1953. code/expected.out/search_sorting3.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/sorting.rst): Exit status 32512, expected 0
  1954. --- tmp.out 2018-02-18 23:13:46.482221272 +0530
  1955. +++ code/expected.out/search_sorting3.out   2017-08-10 14:41:44.689029766 +0530
  1956. @@ -1 +1,21 @@
  1957. -sh: 2: code/c++/built/search_sorting3: not found
  1958. +1: #050 State of Maryland April 28, 1788
  1959. +        Population 5,773,552
  1960. +2: #049 State of Delaware December 7, 1787
  1961. +        Population 897,934
  1962. +3: #040 Commonwealth of Pennsylvania December 12, 1787
  1963. +        Population 12,702,379
  1964. +4: #043 State of New Jersey December 18, 1787
  1965. +        Population 8,791,894
  1966. +5: #039 State of West Virginia June 20, 1863
  1967. +        Population 1,859,815
  1968. +6: #037 State of North Carolina November 21, 1789
  1969. +        Population 9,535,483
  1970. +7: #041 State of New York July 26, 1788
  1971. +        Population 19,378,102
  1972. +8: #038 Commonwealth of Virginia June 25, 1788
  1973. +        Population 8,001,024
  1974. +9: #048 State of Connecticut January 9, 1788
  1975. +        Population 3,574,097
  1976. +10: #036 State of South Carolina May 23, 1788
  1977. +        Population 4,625,384
  1978. +'State'[0:10] = 50 49 40 43 39 37 41 38 48 36
  1979. $ g++ `xapian-config --cxxflags` code/c++/search_sorting3.cc code/c++/support.cc -o code/c++/built/search_sorting3 `xapian-config --libs`
  1980. code/c++/built/search_sorting3 statesdb State > tmp.out 2> tmp2.out
  1981. $ cat tmp2.out >> tmp.out
  1982. $ vimdiff tmp.out code/expected.out/search_sorting3.out
  1983. sh: 1: xapian-config: not found
  1984. sh: 1: xapian-config: not found
  1985. In file included from /usr/include/c++/5/unordered_set:35:0,
  1986.                 from /usr/local/include/xapian/queryparser.h:37,
  1987.                 from /usr/local/include/xapian.h:80,
  1988.                 from code/c++/index1.cc:1:
  1989. /usr/include/c++/5/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.
  1990. #error This file requires compiler and library support \
  1991.  ^
  1992. In file included from /usr/local/include/xapian.h:80:0,
  1993.                 from code/c++/index1.cc:1:
  1994. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  1995.     std::unordered_set<std::string> stop_words;
  1996.          ^
  1997. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  1998. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  1999.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2000.                                                   ^
  2001. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2002. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2003.     void add(const std::string & word) { stop_words.insert(word); }
  2004.                                          ^
  2005. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2006. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2007.  return stop_words.find(term) != stop_words.end();
  2008.         ^
  2009. In file included from /usr/local/include/xapian.h:85:0,
  2010.                 from code/c++/index1.cc:1:
  2011. /usr/local/include/xapian/cluster.h: At global scope:
  2012. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2013.     std::unordered_map<std::string, doccount> termfreq;
  2014.          ^
  2015. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2016.     std::unordered_map<std::string, double> weights;
  2017.          ^
  2018. In file included from /usr/include/c++/5/unordered_set:35:0,
  2019.                 from /usr/local/include/xapian/queryparser.h:37,
  2020.                 from /usr/local/include/xapian.h:80,
  2021.                 from code/c++/support.cc:1:
  2022. /usr/include/c++/5/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.
  2023. #error This file requires compiler and library support \
  2024.  ^
  2025. In file included from /usr/local/include/xapian.h:80:0,
  2026.                 from code/c++/support.cc:1:
  2027. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2028.     std::unordered_set<std::string> stop_words;
  2029.          ^
  2030. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2031. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2032.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2033.                                                   ^
  2034. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2035. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2036.     void add(const std::string & word) { stop_words.insert(word); }
  2037.                                          ^
  2038. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2039. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2040.  return stop_words.find(term) != stop_words.end();
  2041.         ^
  2042. In file included from /usr/local/include/xapian.h:85:0,
  2043.                 from code/c++/support.cc:1:
  2044. /usr/local/include/xapian/cluster.h: At global scope:
  2045. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2046.     std::unordered_map<std::string, doccount> termfreq;
  2047.          ^
  2048. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2049.     std::unordered_map<std::string, double> weights;
  2050.          ^
  2051. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst): Exit status 32512, expected 0
  2052. --- tmp.out 2018-02-18 23:13:46.914198317 +0530
  2053. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  2054. @@ -1 +0,0 @@
  2055. -sh: 2: code/c++/built/index1: not found
  2056. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  2057. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  2058. $ cat tmp2.out >> tmp.out
  2059. $ vimdiff tmp.out code/expected.out/index1.out
  2060. sh: 1: xapian-config: not found
  2061. sh: 1: xapian-config: not found
  2062. In file included from /usr/include/c++/5/unordered_set:35:0,
  2063.                 from /usr/local/include/xapian/queryparser.h:37,
  2064.                 from /usr/local/include/xapian.h:80,
  2065.                 from code/c++/delete1.cc:1:
  2066. /usr/include/c++/5/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.
  2067. #error This file requires compiler and library support \
  2068.  ^
  2069. In file included from /usr/local/include/xapian.h:80:0,
  2070.                 from code/c++/delete1.cc:1:
  2071. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2072.     std::unordered_set<std::string> stop_words;
  2073.          ^
  2074. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2075. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2076.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2077.                                                   ^
  2078. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2079. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2080.     void add(const std::string & word) { stop_words.insert(word); }
  2081.                                          ^
  2082. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2083. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2084.  return stop_words.find(term) != stop_words.end();
  2085.         ^
  2086. In file included from /usr/local/include/xapian.h:85:0,
  2087.                 from code/c++/delete1.cc:1:
  2088. /usr/local/include/xapian/cluster.h: At global scope:
  2089. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2090.     std::unordered_map<std::string, doccount> termfreq;
  2091.          ^
  2092. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2093.     std::unordered_map<std::string, double> weights;
  2094.          ^
  2095. In file included from /usr/include/c++/5/unordered_set:35:0,
  2096.                 from /usr/local/include/xapian/queryparser.h:37,
  2097.                 from /usr/local/include/xapian.h:80,
  2098.                 from code/c++/support.cc:1:
  2099. /usr/include/c++/5/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.
  2100. #error This file requires compiler and library support \
  2101.  ^
  2102. In file included from /usr/local/include/xapian.h:80:0,
  2103.                 from code/c++/support.cc:1:
  2104. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2105.     std::unordered_set<std::string> stop_words;
  2106.          ^
  2107. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2108. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2109.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2110.                                                   ^
  2111. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2112. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2113.     void add(const std::string & word) { stop_words.insert(word); }
  2114.                                          ^
  2115. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2116. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2117.  return stop_words.find(term) != stop_words.end();
  2118.         ^
  2119. In file included from /usr/local/include/xapian.h:85:0,
  2120.                 from code/c++/support.cc:1:
  2121. /usr/local/include/xapian/cluster.h: At global scope:
  2122. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2123.     std::unordered_map<std::string, doccount> termfreq;
  2124.          ^
  2125. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2126.     std::unordered_map<std::string, double> weights;
  2127.          ^
  2128. code/expected.out/delete1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst): Exit status 32512, expected 0
  2129. --- tmp.out 2018-02-18 23:13:47.290178362 +0530
  2130. +++ code/expected.out/delete1.out   2017-08-10 14:41:44.689029766 +0530
  2131. @@ -1 +0,0 @@
  2132. -sh: 2: code/c++/built/delete1: not found
  2133. $ g++ `xapian-config --cxxflags` code/c++/delete1.cc code/c++/support.cc -o code/c++/built/delete1 `xapian-config --libs`
  2134. code/c++/built/delete1 db 1953-448 1985-438 > tmp.out 2> tmp2.out
  2135. $ cat tmp2.out >> tmp.out
  2136. $ vimdiff tmp.out code/expected.out/delete1.out
  2137. sh: 1: xapian-config: not found
  2138. sh: 1: xapian-config: not found
  2139. In file included from /usr/include/c++/5/unordered_set:35:0,
  2140.                 from /usr/local/include/xapian/queryparser.h:37,
  2141.                 from /usr/local/include/xapian.h:80,
  2142.                 from code/c++/search_synonyms.cc:1:
  2143. /usr/include/c++/5/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.
  2144. #error This file requires compiler and library support \
  2145.  ^
  2146. In file included from /usr/local/include/xapian.h:80:0,
  2147.                 from code/c++/search_synonyms.cc:1:
  2148. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2149.     std::unordered_set<std::string> stop_words;
  2150.          ^
  2151. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2152. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2153.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2154.                                                   ^
  2155. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2156. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2157.     void add(const std::string & word) { stop_words.insert(word); }
  2158.                                          ^
  2159. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2160. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2161.  return stop_words.find(term) != stop_words.end();
  2162.         ^
  2163. In file included from /usr/local/include/xapian.h:85:0,
  2164.                 from code/c++/search_synonyms.cc:1:
  2165. /usr/local/include/xapian/cluster.h: At global scope:
  2166. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2167.     std::unordered_map<std::string, doccount> termfreq;
  2168.          ^
  2169. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2170.     std::unordered_map<std::string, double> weights;
  2171.          ^
  2172. In file included from /usr/include/c++/5/unordered_set:35:0,
  2173.                 from /usr/local/include/xapian/queryparser.h:37,
  2174.                 from /usr/local/include/xapian.h:80,
  2175.                 from code/c++/support.cc:1:
  2176. /usr/include/c++/5/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.
  2177. #error This file requires compiler and library support \
  2178.  ^
  2179. In file included from /usr/local/include/xapian.h:80:0,
  2180.                 from code/c++/support.cc:1:
  2181. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2182.     std::unordered_set<std::string> stop_words;
  2183.          ^
  2184. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2185. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2186.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2187.                                                   ^
  2188. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2189. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2190.     void add(const std::string & word) { stop_words.insert(word); }
  2191.                                          ^
  2192. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2193. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2194.  return stop_words.find(term) != stop_words.end();
  2195.         ^
  2196. In file included from /usr/local/include/xapian.h:85:0,
  2197.                 from code/c++/support.cc:1:
  2198. /usr/local/include/xapian/cluster.h: At global scope:
  2199. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2200.     std::unordered_map<std::string, doccount> termfreq;
  2201.          ^
  2202. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2203.     std::unordered_map<std::string, double> weights;
  2204.          ^
  2205. code/expected.out/search_synonyms.db_time.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst): Exit status 32512, expected 0
  2206. --- tmp.out 2018-02-18 23:13:47.678157779 +0530
  2207. +++ code/expected.out/search_synonyms.db_time.out   2017-08-10 14:41:44.689029766 +0530
  2208. @@ -1 +1,10 @@
  2209. -sh: 2: code/c++/built/search_synonyms: not found
  2210. +1: #065 Electric time piece with hands but without dial (no pendulum
  2211. +2: #058 The "Empire" clock, to show the time at various longitudes,
  2212. +3: #041 Frequency and time measuring instrument type TSA3436 by Venn
  2213. +4: #056 Single sandglass in 4 pillared wood mount, running time 15 1
  2214. +5: #043 Loughborough-Hayes automatic timing apparatus. Used by the R
  2215. +6: #011 "Timetrunk" by Hines and Co., Glasgow (a sandglass for timin
  2216. +7: #016 Copy of the gearing of the Byzantine sundial-calendar (1983-
  2217. +8: #045 Master clock of the "Silent Electric" type made by the Magne
  2218. +9: #018 Solar/Sidereal verge watch with epicyclic maintaining power
  2219. +'time'[0:10] = 65 58 41 56 43 11 16 45 18
  2220. $ g++ `xapian-config --cxxflags` code/c++/search_synonyms.cc code/c++/support.cc -o code/c++/built/search_synonyms `xapian-config --libs`
  2221. code/c++/built/search_synonyms db time > tmp.out 2> tmp2.out
  2222. $ cat tmp2.out >> tmp.out
  2223. $ vimdiff tmp.out code/expected.out/search_synonyms.db_time.out
  2224. sh: 1: xapian-config: not found
  2225. sh: 1: xapian-config: not found
  2226. In file included from /usr/include/c++/5/unordered_set:35:0,
  2227.                 from /usr/local/include/xapian/queryparser.h:37,
  2228.                 from /usr/local/include/xapian.h:80,
  2229.                 from code/c++/index1.cc:1:
  2230. /usr/include/c++/5/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.
  2231. #error This file requires compiler and library support \
  2232.  ^
  2233. In file included from /usr/local/include/xapian.h:80:0,
  2234.                 from code/c++/index1.cc:1:
  2235. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2236.     std::unordered_set<std::string> stop_words;
  2237.          ^
  2238. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2239. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2240.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2241.                                                   ^
  2242. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2243. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2244.     void add(const std::string & word) { stop_words.insert(word); }
  2245.                                          ^
  2246. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2247. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2248.  return stop_words.find(term) != stop_words.end();
  2249.         ^
  2250. In file included from /usr/local/include/xapian.h:85:0,
  2251.                 from code/c++/index1.cc:1:
  2252. /usr/local/include/xapian/cluster.h: At global scope:
  2253. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2254.     std::unordered_map<std::string, doccount> termfreq;
  2255.          ^
  2256. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2257.     std::unordered_map<std::string, double> weights;
  2258.          ^
  2259. In file included from /usr/include/c++/5/unordered_set:35:0,
  2260.                 from /usr/local/include/xapian/queryparser.h:37,
  2261.                 from /usr/local/include/xapian.h:80,
  2262.                 from code/c++/support.cc:1:
  2263. /usr/include/c++/5/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.
  2264. #error This file requires compiler and library support \
  2265.  ^
  2266. In file included from /usr/local/include/xapian.h:80:0,
  2267.                 from code/c++/support.cc:1:
  2268. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2269.     std::unordered_set<std::string> stop_words;
  2270.          ^
  2271. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2272. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2273.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2274.                                                   ^
  2275. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2276. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2277.     void add(const std::string & word) { stop_words.insert(word); }
  2278.                                          ^
  2279. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2280. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2281.  return stop_words.find(term) != stop_words.end();
  2282.         ^
  2283. In file included from /usr/local/include/xapian.h:85:0,
  2284.                 from code/c++/support.cc:1:
  2285. /usr/local/include/xapian/cluster.h: At global scope:
  2286. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2287.     std::unordered_map<std::string, doccount> termfreq;
  2288.          ^
  2289. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2290.     std::unordered_map<std::string, double> weights;
  2291.          ^
  2292. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst): Exit status 32512, expected 0
  2293. --- tmp.out 2018-02-18 23:13:48.074136777 +0530
  2294. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  2295. @@ -1 +0,0 @@
  2296. -sh: 2: code/c++/built/index1: not found
  2297. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  2298. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  2299. $ cat tmp2.out >> tmp.out
  2300. $ vimdiff tmp.out code/expected.out/index1.out
  2301. sh: 1: xapian-config: not found
  2302. sh: 1: xapian-config: not found
  2303. In file included from /usr/include/c++/5/unordered_set:35:0,
  2304.                 from /usr/local/include/xapian/queryparser.h:37,
  2305.                 from /usr/local/include/xapian.h:80,
  2306.                 from code/c++/delete1.cc:1:
  2307. /usr/include/c++/5/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.
  2308. #error This file requires compiler and library support \
  2309.  ^
  2310. In file included from /usr/local/include/xapian.h:80:0,
  2311.                 from code/c++/delete1.cc:1:
  2312. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2313.     std::unordered_set<std::string> stop_words;
  2314.          ^
  2315. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2316. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2317.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2318.                                                   ^
  2319. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2320. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2321.     void add(const std::string & word) { stop_words.insert(word); }
  2322.                                          ^
  2323. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2324. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2325.  return stop_words.find(term) != stop_words.end();
  2326.         ^
  2327. In file included from /usr/local/include/xapian.h:85:0,
  2328.                 from code/c++/delete1.cc:1:
  2329. /usr/local/include/xapian/cluster.h: At global scope:
  2330. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2331.     std::unordered_map<std::string, doccount> termfreq;
  2332.          ^
  2333. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2334.     std::unordered_map<std::string, double> weights;
  2335.          ^
  2336. In file included from /usr/include/c++/5/unordered_set:35:0,
  2337.                 from /usr/local/include/xapian/queryparser.h:37,
  2338.                 from /usr/local/include/xapian.h:80,
  2339.                 from code/c++/support.cc:1:
  2340. /usr/include/c++/5/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.
  2341. #error This file requires compiler and library support \
  2342.  ^
  2343. In file included from /usr/local/include/xapian.h:80:0,
  2344.                 from code/c++/support.cc:1:
  2345. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2346.     std::unordered_set<std::string> stop_words;
  2347.          ^
  2348. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2349. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2350.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2351.                                                   ^
  2352. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2353. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2354.     void add(const std::string & word) { stop_words.insert(word); }
  2355.                                          ^
  2356. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2357. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2358.  return stop_words.find(term) != stop_words.end();
  2359.         ^
  2360. In file included from /usr/local/include/xapian.h:85:0,
  2361.                 from code/c++/support.cc:1:
  2362. /usr/local/include/xapian/cluster.h: At global scope:
  2363. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2364.     std::unordered_map<std::string, doccount> termfreq;
  2365.          ^
  2366. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2367.     std::unordered_map<std::string, double> weights;
  2368.          ^
  2369. code/expected.out/delete1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst): Exit status 32512, expected 0
  2370. --- tmp.out 2018-02-18 23:13:48.454116652 +0530
  2371. +++ code/expected.out/delete1.out   2017-08-10 14:41:44.689029766 +0530
  2372. @@ -1 +0,0 @@
  2373. -sh: 2: code/c++/built/delete1: not found
  2374. $ g++ `xapian-config --cxxflags` code/c++/delete1.cc code/c++/support.cc -o code/c++/built/delete1 `xapian-config --libs`
  2375. code/c++/built/delete1 db 1953-448 1985-438 > tmp.out 2> tmp2.out
  2376. $ cat tmp2.out >> tmp.out
  2377. $ vimdiff tmp.out code/expected.out/delete1.out
  2378. sh: 1: xapian-config: not found
  2379. sh: 1: xapian-config: not found
  2380. In file included from /usr/include/c++/5/unordered_set:35:0,
  2381.                 from /usr/local/include/xapian/queryparser.h:37,
  2382.                 from /usr/local/include/xapian.h:80,
  2383.                 from code/c++/search_synonyms.cc:1:
  2384. /usr/include/c++/5/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.
  2385. #error This file requires compiler and library support \
  2386.  ^
  2387. In file included from /usr/local/include/xapian.h:80:0,
  2388.                 from code/c++/search_synonyms.cc:1:
  2389. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2390.     std::unordered_set<std::string> stop_words;
  2391.          ^
  2392. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2393. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2394.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2395.                                                   ^
  2396. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2397. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2398.     void add(const std::string & word) { stop_words.insert(word); }
  2399.                                          ^
  2400. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2401. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2402.  return stop_words.find(term) != stop_words.end();
  2403.         ^
  2404. In file included from /usr/local/include/xapian.h:85:0,
  2405.                 from code/c++/search_synonyms.cc:1:
  2406. /usr/local/include/xapian/cluster.h: At global scope:
  2407. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2408.     std::unordered_map<std::string, doccount> termfreq;
  2409.          ^
  2410. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2411.     std::unordered_map<std::string, double> weights;
  2412.          ^
  2413. In file included from /usr/include/c++/5/unordered_set:35:0,
  2414.                 from /usr/local/include/xapian/queryparser.h:37,
  2415.                 from /usr/local/include/xapian.h:80,
  2416.                 from code/c++/support.cc:1:
  2417. /usr/include/c++/5/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.
  2418. #error This file requires compiler and library support \
  2419.  ^
  2420. In file included from /usr/local/include/xapian.h:80:0,
  2421.                 from code/c++/support.cc:1:
  2422. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2423.     std::unordered_set<std::string> stop_words;
  2424.          ^
  2425. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2426. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2427.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2428.                                                   ^
  2429. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2430. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2431.     void add(const std::string & word) { stop_words.insert(word); }
  2432.                                          ^
  2433. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2434. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2435.  return stop_words.find(term) != stop_words.end();
  2436.         ^
  2437. In file included from /usr/local/include/xapian.h:85:0,
  2438.                 from code/c++/support.cc:1:
  2439. /usr/local/include/xapian/cluster.h: At global scope:
  2440. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2441.     std::unordered_map<std::string, doccount> termfreq;
  2442.          ^
  2443. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2444.     std::unordered_map<std::string, double> weights;
  2445.          ^
  2446. code/expected.out/search_synonyms.out: (/home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst): Exit status 32512, expected 0
  2447. --- tmp.out 2018-02-18 23:13:48.842096102 +0530
  2448. +++ code/expected.out/search_synonyms.out   2017-08-10 14:41:44.689029766 +0530
  2449. @@ -1 +1,11 @@
  2450. -sh: 2: code/c++/built/search_synonyms: not found
  2451. +1: #016 Copy of the gearing of the Byzantine sundial-calendar (1983-
  2452. +2: #072 German Perpetual Calendar in gilt metal
  2453. +3: #065 Electric time piece with hands but without dial (no pendulum
  2454. +4: #068 Ornate brass Perpetual Calendar
  2455. +5: #058 The "Empire" clock, to show the time at various longitudes,
  2456. +6: #041 Frequency and time measuring instrument type TSA3436 by Venn
  2457. +7: #056 Single sandglass in 4 pillared wood mount, running time 15 1
  2458. +8: #043 Loughborough-Hayes automatic timing apparatus. Used by the R
  2459. +9: #026 Sundial and compass with perpetual calendar and lunar circles
  2460. +10: #036 Universal 'Tri-Compax' chronographic wrist watch
  2461. +'~time'[0:10] = 16 72 65 68 58 41 56 43 26 36
  2462. $ g++ `xapian-config --cxxflags` code/c++/search_synonyms.cc code/c++/support.cc -o code/c++/built/search_synonyms `xapian-config --libs`
  2463. code/c++/built/search_synonyms db ~time > tmp.out 2> tmp2.out
  2464. $ cat tmp2.out >> tmp.out
  2465. $ vimdiff tmp.out code/expected.out/search_synonyms.out
  2466. sh: 1: xapian-config: not found
  2467. sh: 1: xapian-config: not found
  2468. In file included from /usr/include/c++/5/unordered_set:35:0,
  2469.                 from /usr/local/include/xapian/queryparser.h:37,
  2470.                 from /usr/local/include/xapian.h:80,
  2471.                 from code/c++/index1.cc:1:
  2472. /usr/include/c++/5/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.
  2473. #error This file requires compiler and library support \
  2474.  ^
  2475. In file included from /usr/local/include/xapian.h:80:0,
  2476.                 from code/c++/index1.cc:1:
  2477. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2478.     std::unordered_set<std::string> stop_words;
  2479.          ^
  2480. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2481. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2482.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2483.                                                   ^
  2484. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2485. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2486.     void add(const std::string & word) { stop_words.insert(word); }
  2487.                                          ^
  2488. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2489. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2490.  return stop_words.find(term) != stop_words.end();
  2491.         ^
  2492. In file included from /usr/local/include/xapian.h:85:0,
  2493.                 from code/c++/index1.cc:1:
  2494. /usr/local/include/xapian/cluster.h: At global scope:
  2495. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2496.     std::unordered_map<std::string, doccount> termfreq;
  2497.          ^
  2498. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2499.     std::unordered_map<std::string, double> weights;
  2500.          ^
  2501. In file included from /usr/include/c++/5/unordered_set:35:0,
  2502.                 from /usr/local/include/xapian/queryparser.h:37,
  2503.                 from /usr/local/include/xapian.h:80,
  2504.                 from code/c++/support.cc:1:
  2505. /usr/include/c++/5/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.
  2506. #error This file requires compiler and library support \
  2507.  ^
  2508. In file included from /usr/local/include/xapian.h:80:0,
  2509.                 from code/c++/support.cc:1:
  2510. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2511.     std::unordered_set<std::string> stop_words;
  2512.          ^
  2513. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2514. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2515.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2516.                                                   ^
  2517. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2518. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2519.     void add(const std::string & word) { stop_words.insert(word); }
  2520.                                          ^
  2521. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2522. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2523.  return stop_words.find(term) != stop_words.end();
  2524.         ^
  2525. In file included from /usr/local/include/xapian.h:85:0,
  2526.                 from code/c++/support.cc:1:
  2527. /usr/local/include/xapian/cluster.h: At global scope:
  2528. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2529.     std::unordered_map<std::string, doccount> termfreq;
  2530.          ^
  2531. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2532.     std::unordered_map<std::string, double> weights;
  2533.          ^
  2534. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/indexing/updating_the_database.rst): Exit status 32512, expected 0
  2535. --- tmp.out 2018-02-18 23:13:49.342069650 +0530
  2536. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  2537. @@ -1 +0,0 @@
  2538. -sh: 2: code/c++/built/index1: not found
  2539. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  2540. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  2541. $ cat tmp2.out >> tmp.out
  2542. $ vimdiff tmp.out code/expected.out/index1.out
  2543. sh: 1: xapian-config: not found
  2544. sh: 1: xapian-config: not found
  2545. In file included from /usr/include/c++/5/unordered_set:35:0,
  2546.                 from /usr/local/include/xapian/queryparser.h:37,
  2547.                 from /usr/local/include/xapian.h:80,
  2548.                 from code/c++/delete1.cc:1:
  2549. /usr/include/c++/5/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.
  2550. #error This file requires compiler and library support \
  2551.  ^
  2552. In file included from /usr/local/include/xapian.h:80:0,
  2553.                 from code/c++/delete1.cc:1:
  2554. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2555.     std::unordered_set<std::string> stop_words;
  2556.          ^
  2557. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2558. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2559.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2560.                                                   ^
  2561. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2562. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2563.     void add(const std::string & word) { stop_words.insert(word); }
  2564.                                          ^
  2565. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2566. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2567.  return stop_words.find(term) != stop_words.end();
  2568.         ^
  2569. In file included from /usr/local/include/xapian.h:85:0,
  2570.                 from code/c++/delete1.cc:1:
  2571. /usr/local/include/xapian/cluster.h: At global scope:
  2572. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2573.     std::unordered_map<std::string, doccount> termfreq;
  2574.          ^
  2575. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2576.     std::unordered_map<std::string, double> weights;
  2577.          ^
  2578. In file included from /usr/include/c++/5/unordered_set:35:0,
  2579.                 from /usr/local/include/xapian/queryparser.h:37,
  2580.                 from /usr/local/include/xapian.h:80,
  2581.                 from code/c++/support.cc:1:
  2582. /usr/include/c++/5/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.
  2583. #error This file requires compiler and library support \
  2584.  ^
  2585. In file included from /usr/local/include/xapian.h:80:0,
  2586.                 from code/c++/support.cc:1:
  2587. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2588.     std::unordered_set<std::string> stop_words;
  2589.          ^
  2590. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2591. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2592.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2593.                                                   ^
  2594. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2595. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2596.     void add(const std::string & word) { stop_words.insert(word); }
  2597.                                          ^
  2598. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2599. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2600.  return stop_words.find(term) != stop_words.end();
  2601.         ^
  2602. In file included from /usr/local/include/xapian.h:85:0,
  2603.                 from code/c++/support.cc:1:
  2604. /usr/local/include/xapian/cluster.h: At global scope:
  2605. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2606.     std::unordered_map<std::string, doccount> termfreq;
  2607.          ^
  2608. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2609.     std::unordered_map<std::string, double> weights;
  2610.          ^
  2611. code/expected.out/delete1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/indexing/updating_the_database.rst): Exit status 32512, expected 0
  2612. --- tmp.out 2018-02-18 23:13:49.714049981 +0530
  2613. +++ code/expected.out/delete1.out   2017-08-10 14:41:44.689029766 +0530
  2614. @@ -1 +0,0 @@
  2615. -sh: 2: code/c++/built/delete1: not found
  2616. $ g++ `xapian-config --cxxflags` code/c++/delete1.cc code/c++/support.cc -o code/c++/built/delete1 `xapian-config --libs`
  2617. code/c++/built/delete1 db 1953-448 1985-438 > tmp.out 2> tmp2.out
  2618. $ cat tmp2.out >> tmp.out
  2619. $ vimdiff tmp.out code/expected.out/delete1.out
  2620. sh: 1: xapian-config: not found
  2621. sh: 1: xapian-config: not found
  2622. In file included from /usr/include/c++/5/unordered_set:35:0,
  2623.                 from /usr/local/include/xapian/queryparser.h:37,
  2624.                 from /usr/local/include/xapian.h:80,
  2625.                 from code/c++/index1.cc:1:
  2626. /usr/include/c++/5/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.
  2627. #error This file requires compiler and library support \
  2628.  ^
  2629. In file included from /usr/local/include/xapian.h:80:0,
  2630.                 from code/c++/index1.cc:1:
  2631. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2632.     std::unordered_set<std::string> stop_words;
  2633.          ^
  2634. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2635. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2636.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2637.                                                   ^
  2638. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2639. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2640.     void add(const std::string & word) { stop_words.insert(word); }
  2641.                                          ^
  2642. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2643. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2644.  return stop_words.find(term) != stop_words.end();
  2645.         ^
  2646. In file included from /usr/local/include/xapian.h:85:0,
  2647.                 from code/c++/index1.cc:1:
  2648. /usr/local/include/xapian/cluster.h: At global scope:
  2649. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2650.     std::unordered_map<std::string, doccount> termfreq;
  2651.          ^
  2652. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2653.     std::unordered_map<std::string, double> weights;
  2654.          ^
  2655. In file included from /usr/include/c++/5/unordered_set:35:0,
  2656.                 from /usr/local/include/xapian/queryparser.h:37,
  2657.                 from /usr/local/include/xapian.h:80,
  2658.                 from code/c++/support.cc:1:
  2659. /usr/include/c++/5/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.
  2660. #error This file requires compiler and library support \
  2661.  ^
  2662. In file included from /usr/local/include/xapian.h:80:0,
  2663.                 from code/c++/support.cc:1:
  2664. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2665.     std::unordered_set<std::string> stop_words;
  2666.          ^
  2667. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2668. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2669.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2670.                                                   ^
  2671. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2672. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2673.     void add(const std::string & word) { stop_words.insert(word); }
  2674.                                          ^
  2675. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2676. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2677.  return stop_words.find(term) != stop_words.end();
  2678.         ^
  2679. In file included from /usr/local/include/xapian.h:85:0,
  2680.                 from code/c++/support.cc:1:
  2681. /usr/local/include/xapian/cluster.h: At global scope:
  2682. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2683.     std::unordered_map<std::string, doccount> termfreq;
  2684.          ^
  2685. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2686.     std::unordered_map<std::string, double> weights;
  2687.          ^
  2688. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/indexing/writing_the_code.rst): Exit status 32512, expected 0
  2689. --- tmp.out 2018-02-18 23:13:50.142027363 +0530
  2690. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  2691. @@ -1 +0,0 @@
  2692. -sh: 2: code/c++/built/index1: not found
  2693. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  2694. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  2695. $ cat tmp2.out >> tmp.out
  2696. $ vimdiff tmp.out code/expected.out/index1.out
  2697. sh: 1: xapian-config: not found
  2698. sh: 1: xapian-config: not found
  2699. In file included from /usr/include/c++/5/unordered_set:35:0,
  2700.                 from /usr/local/include/xapian/queryparser.h:37,
  2701.                 from /usr/local/include/xapian.h:80,
  2702.                 from code/c++/index1.cc:1:
  2703. /usr/include/c++/5/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.
  2704. #error This file requires compiler and library support \
  2705.  ^
  2706. In file included from /usr/local/include/xapian.h:80:0,
  2707.                 from code/c++/index1.cc:1:
  2708. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2709.     std::unordered_set<std::string> stop_words;
  2710.          ^
  2711. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2712. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2713.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2714.                                                   ^
  2715. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2716. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2717.     void add(const std::string & word) { stop_words.insert(word); }
  2718.                                          ^
  2719. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2720. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2721.  return stop_words.find(term) != stop_words.end();
  2722.         ^
  2723. In file included from /usr/local/include/xapian.h:85:0,
  2724.                 from code/c++/index1.cc:1:
  2725. /usr/local/include/xapian/cluster.h: At global scope:
  2726. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2727.     std::unordered_map<std::string, doccount> termfreq;
  2728.          ^
  2729. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2730.     std::unordered_map<std::string, double> weights;
  2731.          ^
  2732. In file included from /usr/include/c++/5/unordered_set:35:0,
  2733.                 from /usr/local/include/xapian/queryparser.h:37,
  2734.                 from /usr/local/include/xapian.h:80,
  2735.                 from code/c++/support.cc:1:
  2736. /usr/include/c++/5/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.
  2737. #error This file requires compiler and library support \
  2738.  ^
  2739. In file included from /usr/local/include/xapian.h:80:0,
  2740.                 from code/c++/support.cc:1:
  2741. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2742.     std::unordered_set<std::string> stop_words;
  2743.          ^
  2744. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2745. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2746.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2747.                                                   ^
  2748. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2749. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2750.     void add(const std::string & word) { stop_words.insert(word); }
  2751.                                          ^
  2752. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2753. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2754.  return stop_words.find(term) != stop_words.end();
  2755.         ^
  2756. In file included from /usr/local/include/xapian.h:85:0,
  2757.                 from code/c++/support.cc:1:
  2758. /usr/local/include/xapian/cluster.h: At global scope:
  2759. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2760.     std::unordered_map<std::string, doccount> termfreq;
  2761.          ^
  2762. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2763.     std::unordered_map<std::string, double> weights;
  2764.          ^
  2765. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/prefix.rst): Exit status 32512, expected 0
  2766. --- tmp.out 2018-02-18 23:13:50.558005404 +0530
  2767. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  2768. @@ -1 +0,0 @@
  2769. -sh: 2: code/c++/built/index1: not found
  2770. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  2771. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  2772. $ cat tmp2.out >> tmp.out
  2773. $ vimdiff tmp.out code/expected.out/index1.out
  2774. sh: 1: xapian-config: not found
  2775. sh: 1: xapian-config: not found
  2776. In file included from /usr/include/c++/5/unordered_set:35:0,
  2777.                 from /usr/local/include/xapian/queryparser.h:37,
  2778.                 from /usr/local/include/xapian.h:80,
  2779.                 from code/c++/delete1.cc:1:
  2780. /usr/include/c++/5/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.
  2781. #error This file requires compiler and library support \
  2782.  ^
  2783. In file included from /usr/local/include/xapian.h:80:0,
  2784.                 from code/c++/delete1.cc:1:
  2785. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2786.     std::unordered_set<std::string> stop_words;
  2787.          ^
  2788. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2789. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2790.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2791.                                                   ^
  2792. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2793. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2794.     void add(const std::string & word) { stop_words.insert(word); }
  2795.                                          ^
  2796. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2797. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2798.  return stop_words.find(term) != stop_words.end();
  2799.         ^
  2800. In file included from /usr/local/include/xapian.h:85:0,
  2801.                 from code/c++/delete1.cc:1:
  2802. /usr/local/include/xapian/cluster.h: At global scope:
  2803. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2804.     std::unordered_map<std::string, doccount> termfreq;
  2805.          ^
  2806. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2807.     std::unordered_map<std::string, double> weights;
  2808.          ^
  2809. In file included from /usr/include/c++/5/unordered_set:35:0,
  2810.                 from /usr/local/include/xapian/queryparser.h:37,
  2811.                 from /usr/local/include/xapian.h:80,
  2812.                 from code/c++/support.cc:1:
  2813. /usr/include/c++/5/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.
  2814. #error This file requires compiler and library support \
  2815.  ^
  2816. In file included from /usr/local/include/xapian.h:80:0,
  2817.                 from code/c++/support.cc:1:
  2818. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2819.     std::unordered_set<std::string> stop_words;
  2820.          ^
  2821. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2822. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2823.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2824.                                                   ^
  2825. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2826. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2827.     void add(const std::string & word) { stop_words.insert(word); }
  2828.                                          ^
  2829. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2830. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2831.  return stop_words.find(term) != stop_words.end();
  2832.         ^
  2833. In file included from /usr/local/include/xapian.h:85:0,
  2834.                 from code/c++/support.cc:1:
  2835. /usr/local/include/xapian/cluster.h: At global scope:
  2836. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2837.     std::unordered_map<std::string, doccount> termfreq;
  2838.          ^
  2839. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2840.     std::unordered_map<std::string, double> weights;
  2841.          ^
  2842. code/expected.out/delete1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/prefix.rst): Exit status 32512, expected 0
  2843. --- tmp.out 2018-02-18 23:13:50.937985344 +0530
  2844. +++ code/expected.out/delete1.out   2017-08-10 14:41:44.689029766 +0530
  2845. @@ -1 +0,0 @@
  2846. -sh: 2: code/c++/built/delete1: not found
  2847. $ g++ `xapian-config --cxxflags` code/c++/delete1.cc code/c++/support.cc -o code/c++/built/delete1 `xapian-config --libs`
  2848. code/c++/built/delete1 db 1953-448 1985-438 > tmp.out 2> tmp2.out
  2849. $ cat tmp2.out >> tmp.out
  2850. $ vimdiff tmp.out code/expected.out/delete1.out
  2851. sh: 1: xapian-config: not found
  2852. sh: 1: xapian-config: not found
  2853. In file included from /usr/include/c++/5/unordered_set:35:0,
  2854.                 from /usr/local/include/xapian/queryparser.h:37,
  2855.                 from /usr/local/include/xapian.h:80,
  2856.                 from code/c++/search1.cc:1:
  2857. /usr/include/c++/5/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.
  2858. #error This file requires compiler and library support \
  2859.  ^
  2860. In file included from /usr/local/include/xapian.h:80:0,
  2861.                 from code/c++/search1.cc:1:
  2862. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2863.     std::unordered_set<std::string> stop_words;
  2864.          ^
  2865. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2866. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2867.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2868.                                                   ^
  2869. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2870. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2871.     void add(const std::string & word) { stop_words.insert(word); }
  2872.                                          ^
  2873. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2874. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2875.  return stop_words.find(term) != stop_words.end();
  2876.         ^
  2877. In file included from /usr/local/include/xapian.h:85:0,
  2878.                 from code/c++/search1.cc:1:
  2879. /usr/local/include/xapian/cluster.h: At global scope:
  2880. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2881.     std::unordered_map<std::string, doccount> termfreq;
  2882.          ^
  2883. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2884.     std::unordered_map<std::string, double> weights;
  2885.          ^
  2886. In file included from /usr/include/c++/5/unordered_set:35:0,
  2887.                 from /usr/local/include/xapian/queryparser.h:37,
  2888.                 from /usr/local/include/xapian.h:80,
  2889.                 from code/c++/support.cc:1:
  2890. /usr/include/c++/5/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.
  2891. #error This file requires compiler and library support \
  2892.  ^
  2893. In file included from /usr/local/include/xapian.h:80:0,
  2894.                 from code/c++/support.cc:1:
  2895. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2896.     std::unordered_set<std::string> stop_words;
  2897.          ^
  2898. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2899. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2900.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2901.                                                   ^
  2902. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2903. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2904.     void add(const std::string & word) { stop_words.insert(word); }
  2905.                                          ^
  2906. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2907. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2908.  return stop_words.find(term) != stop_words.end();
  2909.         ^
  2910. In file included from /usr/local/include/xapian.h:85:0,
  2911.                 from code/c++/support.cc:1:
  2912. /usr/local/include/xapian/cluster.h: At global scope:
  2913. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2914.     std::unordered_map<std::string, doccount> termfreq;
  2915.          ^
  2916. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2917.     std::unordered_map<std::string, double> weights;
  2918.          ^
  2919. code/expected.out/search1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/prefix.rst): Exit status 32512, expected 0
  2920. --- tmp.out 2018-02-18 23:13:51.329964681 +0530
  2921. +++ code/expected.out/search1.out   2017-08-10 14:41:44.689029766 +0530
  2922. @@ -1 +1,2 @@
  2923. -sh: 2: code/c++/built/search1: not found
  2924. +1: #001 Ansonia Sunwatch (pocket compas dial)
  2925. +'title:sunwatch'[0:10] = 1
  2926. $ g++ `xapian-config --cxxflags` code/c++/search1.cc code/c++/support.cc -o code/c++/built/search1 `xapian-config --libs`
  2927. code/c++/built/search1 db title:sunwatch > tmp.out 2> tmp2.out
  2928. $ cat tmp2.out >> tmp.out
  2929. $ vimdiff tmp.out code/expected.out/search1.out
  2930. sh: 1: xapian-config: not found
  2931. sh: 1: xapian-config: not found
  2932. In file included from /usr/include/c++/5/unordered_set:35:0,
  2933.                 from /usr/local/include/xapian/queryparser.h:37,
  2934.                 from /usr/local/include/xapian.h:80,
  2935.                 from code/c++/search1.cc:1:
  2936. /usr/include/c++/5/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.
  2937. #error This file requires compiler and library support \
  2938.  ^
  2939. In file included from /usr/local/include/xapian.h:80:0,
  2940.                 from code/c++/search1.cc:1:
  2941. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2942.     std::unordered_set<std::string> stop_words;
  2943.          ^
  2944. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2945. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2946.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2947.                                                   ^
  2948. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2949. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2950.     void add(const std::string & word) { stop_words.insert(word); }
  2951.                                          ^
  2952. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2953. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2954.  return stop_words.find(term) != stop_words.end();
  2955.         ^
  2956. In file included from /usr/local/include/xapian.h:85:0,
  2957.                 from code/c++/search1.cc:1:
  2958. /usr/local/include/xapian/cluster.h: At global scope:
  2959. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2960.     std::unordered_map<std::string, doccount> termfreq;
  2961.          ^
  2962. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2963.     std::unordered_map<std::string, double> weights;
  2964.          ^
  2965. In file included from /usr/include/c++/5/unordered_set:35:0,
  2966.                 from /usr/local/include/xapian/queryparser.h:37,
  2967.                 from /usr/local/include/xapian.h:80,
  2968.                 from code/c++/support.cc:1:
  2969. /usr/include/c++/5/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.
  2970. #error This file requires compiler and library support \
  2971.  ^
  2972. In file included from /usr/local/include/xapian.h:80:0,
  2973.                 from code/c++/support.cc:1:
  2974. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  2975.     std::unordered_set<std::string> stop_words;
  2976.          ^
  2977. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  2978. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  2979.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  2980.                                                   ^
  2981. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  2982. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  2983.     void add(const std::string & word) { stop_words.insert(word); }
  2984.                                          ^
  2985. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  2986. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  2987.  return stop_words.find(term) != stop_words.end();
  2988.         ^
  2989. In file included from /usr/local/include/xapian.h:85:0,
  2990.                 from code/c++/support.cc:1:
  2991. /usr/local/include/xapian/cluster.h: At global scope:
  2992. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2993.     std::unordered_map<std::string, doccount> termfreq;
  2994.          ^
  2995. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  2996.     std::unordered_map<std::string, double> weights;
  2997.          ^
  2998. code/expected.out/search1.db_description=3a=5c=22leather_case=5c=22_AND_title=3asundial.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/prefix.rst): Exit status 32512, expected 0
  2999. --- tmp.out 2018-02-18 23:13:51.721944022 +0530
  3000. +++ code/expected.out/search1.db_description=3a=5c=22leather_case=5c=22_AND_title=3asundial.out 2017-08-10 14:41:44.689029766 +0530
  3001. @@ -1 +1,2 @@
  3002. -sh: 2: code/c++/built/search1: not found
  3003. +1: #055 Silver altitude sundial in leather case
  3004. +'description:"leather case" AND title:sundial'[0:10] = 55
  3005. $ g++ `xapian-config --cxxflags` code/c++/search1.cc code/c++/support.cc -o code/c++/built/search1 `xapian-config --libs`
  3006. code/c++/built/search1 db description:\"leather case\" AND title:sundial > tmp.out 2> tmp2.out
  3007. $ cat tmp2.out >> tmp.out
  3008. $ vimdiff tmp.out code/expected.out/search1.db_description=3a=5c=22leather_case=5c=22_AND_title=3asundial.out
  3009. sh: 1: xapian-config: not found
  3010. sh: 1: xapian-config: not found
  3011. In file included from /usr/include/c++/5/unordered_set:35:0,
  3012.                 from /usr/local/include/xapian/queryparser.h:37,
  3013.                 from /usr/local/include/xapian.h:80,
  3014.                 from code/c++/index1.cc:1:
  3015. /usr/include/c++/5/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.
  3016. #error This file requires compiler and library support \
  3017.  ^
  3018. In file included from /usr/local/include/xapian.h:80:0,
  3019.                 from code/c++/index1.cc:1:
  3020. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3021.     std::unordered_set<std::string> stop_words;
  3022.          ^
  3023. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3024. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3025.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3026.                                                   ^
  3027. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3028. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3029.     void add(const std::string & word) { stop_words.insert(word); }
  3030.                                          ^
  3031. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3032. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3033.  return stop_words.find(term) != stop_words.end();
  3034.         ^
  3035. In file included from /usr/local/include/xapian.h:85:0,
  3036.                 from code/c++/index1.cc:1:
  3037. /usr/local/include/xapian/cluster.h: At global scope:
  3038. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3039.     std::unordered_map<std::string, doccount> termfreq;
  3040.          ^
  3041. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3042.     std::unordered_map<std::string, double> weights;
  3043.          ^
  3044. In file included from /usr/include/c++/5/unordered_set:35:0,
  3045.                 from /usr/local/include/xapian/queryparser.h:37,
  3046.                 from /usr/local/include/xapian.h:80,
  3047.                 from code/c++/support.cc:1:
  3048. /usr/include/c++/5/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.
  3049. #error This file requires compiler and library support \
  3050.  ^
  3051. In file included from /usr/local/include/xapian.h:80:0,
  3052.                 from code/c++/support.cc:1:
  3053. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3054.     std::unordered_set<std::string> stop_words;
  3055.          ^
  3056. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3057. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3058.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3059.                                                   ^
  3060. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3061. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3062.     void add(const std::string & word) { stop_words.insert(word); }
  3063.                                          ^
  3064. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3065. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3066.  return stop_words.find(term) != stop_words.end();
  3067.         ^
  3068. In file included from /usr/local/include/xapian.h:85:0,
  3069.                 from code/c++/support.cc:1:
  3070. /usr/local/include/xapian/cluster.h: At global scope:
  3071. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3072.     std::unordered_map<std::string, doccount> termfreq;
  3073.          ^
  3074. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3075.     std::unordered_map<std::string, double> weights;
  3076.          ^
  3077. code/expected.out/index1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/running_the_search.rst): Exit status 32512, expected 0
  3078. --- tmp.out 2018-02-18 23:13:52.121922952 +0530
  3079. +++ code/expected.out/index1.out    2017-08-10 14:41:44.689029766 +0530
  3080. @@ -1 +0,0 @@
  3081. -sh: 2: code/c++/built/index1: not found
  3082. $ g++ `xapian-config --cxxflags` code/c++/index1.cc code/c++/support.cc -o code/c++/built/index1 `xapian-config --libs`
  3083. code/c++/built/index1 data/100-objects-v1.csv db > tmp.out 2> tmp2.out
  3084. $ cat tmp2.out >> tmp.out
  3085. $ vimdiff tmp.out code/expected.out/index1.out
  3086. sh: 1: xapian-config: not found
  3087. sh: 1: xapian-config: not found
  3088. In file included from /usr/include/c++/5/unordered_set:35:0,
  3089.                 from /usr/local/include/xapian/queryparser.h:37,
  3090.                 from /usr/local/include/xapian.h:80,
  3091.                 from code/c++/delete1.cc:1:
  3092. /usr/include/c++/5/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.
  3093. #error This file requires compiler and library support \
  3094.  ^
  3095. In file included from /usr/local/include/xapian.h:80:0,
  3096.                 from code/c++/delete1.cc:1:
  3097. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3098.     std::unordered_set<std::string> stop_words;
  3099.          ^
  3100. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3101. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3102.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3103.                                                   ^
  3104. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3105. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3106.     void add(const std::string & word) { stop_words.insert(word); }
  3107.                                          ^
  3108. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3109. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3110.  return stop_words.find(term) != stop_words.end();
  3111.         ^
  3112. In file included from /usr/local/include/xapian.h:85:0,
  3113.                 from code/c++/delete1.cc:1:
  3114. /usr/local/include/xapian/cluster.h: At global scope:
  3115. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3116.     std::unordered_map<std::string, doccount> termfreq;
  3117.          ^
  3118. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3119.     std::unordered_map<std::string, double> weights;
  3120.          ^
  3121. In file included from /usr/include/c++/5/unordered_set:35:0,
  3122.                 from /usr/local/include/xapian/queryparser.h:37,
  3123.                 from /usr/local/include/xapian.h:80,
  3124.                 from code/c++/support.cc:1:
  3125. /usr/include/c++/5/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.
  3126. #error This file requires compiler and library support \
  3127.  ^
  3128. In file included from /usr/local/include/xapian.h:80:0,
  3129.                 from code/c++/support.cc:1:
  3130. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3131.     std::unordered_set<std::string> stop_words;
  3132.          ^
  3133. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3134. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3135.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3136.                                                   ^
  3137. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3138. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3139.     void add(const std::string & word) { stop_words.insert(word); }
  3140.                                          ^
  3141. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3142. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3143.  return stop_words.find(term) != stop_words.end();
  3144.         ^
  3145. In file included from /usr/local/include/xapian.h:85:0,
  3146.                 from code/c++/support.cc:1:
  3147. /usr/local/include/xapian/cluster.h: At global scope:
  3148. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3149.     std::unordered_map<std::string, doccount> termfreq;
  3150.          ^
  3151. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3152.     std::unordered_map<std::string, double> weights;
  3153.          ^
  3154. code/expected.out/delete1.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/running_the_search.rst): Exit status 32512, expected 0
  3155. --- tmp.out 2018-02-18 23:13:52.501902958 +0530
  3156. +++ code/expected.out/delete1.out   2017-08-10 14:41:44.689029766 +0530
  3157. @@ -1 +0,0 @@
  3158. -sh: 2: code/c++/built/delete1: not found
  3159. $ g++ `xapian-config --cxxflags` code/c++/delete1.cc code/c++/support.cc -o code/c++/built/delete1 `xapian-config --libs`
  3160. code/c++/built/delete1 db 1953-448 1985-438 > tmp.out 2> tmp2.out
  3161. $ cat tmp2.out >> tmp.out
  3162. $ vimdiff tmp.out code/expected.out/delete1.out
  3163. sh: 1: xapian-config: not found
  3164. sh: 1: xapian-config: not found
  3165. In file included from /usr/include/c++/5/unordered_set:35:0,
  3166.                 from /usr/local/include/xapian/queryparser.h:37,
  3167.                 from /usr/local/include/xapian.h:80,
  3168.                 from code/c++/search1.cc:1:
  3169. /usr/include/c++/5/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.
  3170. #error This file requires compiler and library support \
  3171.  ^
  3172. In file included from /usr/local/include/xapian.h:80:0,
  3173.                 from code/c++/search1.cc:1:
  3174. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3175.     std::unordered_set<std::string> stop_words;
  3176.          ^
  3177. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3178. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3179.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3180.                                                   ^
  3181. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3182. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3183.     void add(const std::string & word) { stop_words.insert(word); }
  3184.                                          ^
  3185. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3186. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3187.  return stop_words.find(term) != stop_words.end();
  3188.         ^
  3189. In file included from /usr/local/include/xapian.h:85:0,
  3190.                 from code/c++/search1.cc:1:
  3191. /usr/local/include/xapian/cluster.h: At global scope:
  3192. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3193.     std::unordered_map<std::string, doccount> termfreq;
  3194.          ^
  3195. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3196.     std::unordered_map<std::string, double> weights;
  3197.          ^
  3198. In file included from /usr/include/c++/5/unordered_set:35:0,
  3199.                 from /usr/local/include/xapian/queryparser.h:37,
  3200.                 from /usr/local/include/xapian.h:80,
  3201.                 from code/c++/support.cc:1:
  3202. /usr/include/c++/5/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.
  3203. #error This file requires compiler and library support \
  3204.  ^
  3205. In file included from /usr/local/include/xapian.h:80:0,
  3206.                 from code/c++/support.cc:1:
  3207. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3208.     std::unordered_set<std::string> stop_words;
  3209.          ^
  3210. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3211. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3212.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3213.                                                   ^
  3214. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3215. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3216.     void add(const std::string & word) { stop_words.insert(word); }
  3217.                                          ^
  3218. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3219. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3220.  return stop_words.find(term) != stop_words.end();
  3221.         ^
  3222. In file included from /usr/local/include/xapian.h:85:0,
  3223.                 from code/c++/support.cc:1:
  3224. /usr/local/include/xapian/cluster.h: At global scope:
  3225. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3226.     std::unordered_map<std::string, doccount> termfreq;
  3227.          ^
  3228. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3229.     std::unordered_map<std::string, double> weights;
  3230.          ^
  3231. code/expected.out/search1.db_watch.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/running_the_search.rst): Exit status 32512, expected 0
  3232. --- tmp.out 2018-02-18 23:13:52.901881914 +0530
  3233. +++ code/expected.out/search1.db_watch.out  2017-08-10 14:41:44.689029766 +0530
  3234. @@ -1 +1,8 @@
  3235. -sh: 2: code/c++/built/search1: not found
  3236. +1: #004 Watch with Chinese duplex escapement
  3237. +2: #018 Solar/Sidereal verge watch with epicyclic maintaining power
  3238. +3: #013 Watch timer by P
  3239. +4: #033 A device by Favag of Neuchatel which enables a stop watch to
  3240. +5: #015 Ingersoll "Dan Dare" automaton pocket watch with pin-pallet
  3241. +6: #036 Universal 'Tri-Compax' chronographic wrist watch
  3242. +7: #046 Model by Dent of mechanism for setting hands and winding up
  3243. +'watch'[0:10] = 4 18 13 33 15 36 46
  3244. $ g++ `xapian-config --cxxflags` code/c++/search1.cc code/c++/support.cc -o code/c++/built/search1 `xapian-config --libs`
  3245. code/c++/built/search1 db watch > tmp.out 2> tmp2.out
  3246. $ cat tmp2.out >> tmp.out
  3247. $ vimdiff tmp.out code/expected.out/search1.db_watch.out
  3248. sh: 1: xapian-config: not found
  3249. sh: 1: xapian-config: not found
  3250. In file included from /usr/include/c++/5/unordered_set:35:0,
  3251.                 from /usr/local/include/xapian/queryparser.h:37,
  3252.                 from /usr/local/include/xapian.h:80,
  3253.                 from code/c++/search1.cc:1:
  3254. /usr/include/c++/5/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.
  3255. #error This file requires compiler and library support \
  3256.  ^
  3257. In file included from /usr/local/include/xapian.h:80:0,
  3258.                 from code/c++/search1.cc:1:
  3259. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3260.     std::unordered_set<std::string> stop_words;
  3261.          ^
  3262. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3263. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3264.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3265.                                                   ^
  3266. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3267. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3268.     void add(const std::string & word) { stop_words.insert(word); }
  3269.                                          ^
  3270. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3271. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3272.  return stop_words.find(term) != stop_words.end();
  3273.         ^
  3274. In file included from /usr/local/include/xapian.h:85:0,
  3275.                 from code/c++/search1.cc:1:
  3276. /usr/local/include/xapian/cluster.h: At global scope:
  3277. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3278.     std::unordered_map<std::string, doccount> termfreq;
  3279.          ^
  3280. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3281.     std::unordered_map<std::string, double> weights;
  3282.          ^
  3283. In file included from /usr/include/c++/5/unordered_set:35:0,
  3284.                 from /usr/local/include/xapian/queryparser.h:37,
  3285.                 from /usr/local/include/xapian.h:80,
  3286.                 from code/c++/support.cc:1:
  3287. /usr/include/c++/5/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.
  3288. #error This file requires compiler and library support \
  3289.  ^
  3290. In file included from /usr/local/include/xapian.h:80:0,
  3291.                 from code/c++/support.cc:1:
  3292. /usr/local/include/xapian/queryparser.h:96:10: error: ‘unordered_set’ in namespace ‘std’ does not name a template type
  3293.     std::unordered_set<std::string> stop_words;
  3294.          ^
  3295. /usr/local/include/xapian/queryparser.h: In constructor ‘Xapian::SimpleStopper::SimpleStopper(Iterator, Iterator)’:
  3296. /usr/local/include/xapian/queryparser.h:112:51: error: class ‘Xapian::SimpleStopper’ does not have any field named ‘stop_words’
  3297.     SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
  3298.                                                   ^
  3299. /usr/local/include/xapian/queryparser.h: In member function ‘void Xapian::SimpleStopper::add(const string&)’:
  3300. /usr/local/include/xapian/queryparser.h:115:42: error: ‘stop_words’ was not declared in this scope
  3301.     void add(const std::string & word) { stop_words.insert(word); }
  3302.                                          ^
  3303. /usr/local/include/xapian/queryparser.h: In member function ‘virtual bool Xapian::SimpleStopper::operator()(const string&) const’:
  3304. /usr/local/include/xapian/queryparser.h:118:9: error: ‘stop_words’ was not declared in this scope
  3305.  return stop_words.find(term) != stop_words.end();
  3306.         ^
  3307. In file included from /usr/local/include/xapian.h:85:0,
  3308.                 from code/c++/support.cc:1:
  3309. /usr/local/include/xapian/cluster.h: At global scope:
  3310. /usr/local/include/xapian/cluster.h:157:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3311.     std::unordered_map<std::string, doccount> termfreq;
  3312.          ^
  3313. /usr/local/include/xapian/cluster.h:195:10: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  3314.     std::unordered_map<std::string, double> weights;
  3315.          ^
  3316. code/expected.out/search1.db_Dent_watch.out: (/home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/running_the_search.rst): Exit status 32512, expected 0
  3317. --- tmp.out 2018-02-18 23:13:53.297861105 +0530
  3318. +++ code/expected.out/search1.db_Dent_watch.out 2017-08-10 14:41:44.689029766 +0530
  3319. @@ -1 +1,11 @@
  3320. -sh: 2: code/c++/built/search1: not found
  3321. +1: #046 Model by Dent of mechanism for setting hands and winding up
  3322. +2: #004 Watch with Chinese duplex escapement
  3323. +3: #018 Solar/Sidereal verge watch with epicyclic maintaining power
  3324. +4: #013 Watch timer by P
  3325. +5: #094 Model of a Lever Escapement , 1850-1883
  3326. +6: #093 Model of Graham's Cylinder Escapement, 1850-1883
  3327. +7: #033 A device by Favag of Neuchatel which enables a stop watch to
  3328. +8: #015 Ingersoll "Dan Dare" automaton pocket watch with pin-pallet
  3329. +9: #086 Model representing Earnshaw's detent chronometer escapement, 1950-1883
  3330. +10: #036 Universal 'Tri-Compax' chronographic wrist watch
  3331. +'Dent watch'[0:10] = 46 4 18 13 94 93 33 15 86 36
  3332. $ g++ `xapian-config --cxxflags` code/c++/search1.cc code/c++/support.cc -o code/c++/built/search1 `xapian-config --libs`
  3333. code/c++/built/search1 db Dent watch > tmp.out 2> tmp2.out
  3334. $ cat tmp2.out >> tmp.out
  3335. $ vimdiff tmp.out code/expected.out/search1.db_Dent_watch.out
  3336. /home/ayush/Desktop/workspace/xapian-docsprint/advanced/learning_to_rank.rst:108: WARNING: Include file '/home/ayush/Desktop/workspace/xapian-docsprint/advanced/search_letor' not found or reading it failed
  3337. /home/ayush/Desktop/workspace/xapian-docsprint/advanced/learning_to_rank.rst:145: ERROR: 4 error(s) with example code
  3338. /home/ayush/Desktop/workspace/xapian-docsprint/howtos/boolean_filters.rst:147: ERROR: 6 error(s) with example code
  3339. /home/ayush/Desktop/workspace/xapian-docsprint/howtos/facets.rst:130: ERROR: 4 error(s) with example code
  3340. /home/ayush/Desktop/workspace/xapian-docsprint/howtos/range_queries.rst:298: ERROR: 22 error(s) with example code
  3341. /home/ayush/Desktop/workspace/xapian-docsprint/howtos/sorting.rst:147: ERROR: 10 error(s) with example code
  3342. /home/ayush/Desktop/workspace/xapian-docsprint/howtos/synonyms.rst:137: ERROR: 12 error(s) with example code
  3343. /home/ayush/Desktop/workspace/xapian-docsprint/practical_example/indexing/updating_the_database.rst:57: ERROR: 4 error(s) with example code
  3344. /home/ayush/Desktop/workspace/xapian-docsprint/practical_example/indexing/writing_the_code.rst:18: ERROR: 2 error(s) with example code
  3345. /home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/prefix.rst:42: ERROR: 8 error(s) with example code
  3346. /home/ayush/Desktop/workspace/xapian-docsprint/practical_example/searching/running_the_search.rst:31: ERROR: 8 error(s) with example code
  3347. /home/ayush/Desktop/workspace/xapian-docsprint/advanced/learning_to_rank.rst:37: WARNING: Could not lex literal_block as "c++". Highlighting skipped.
  3348. /home/ayush/Desktop/workspace/xapian-docsprint/concepts/search/search_limitations.rst:46: WARNING: unknown document: /advanced/remote
  3349. *** No version of example postingsource in language c++ - patches welcome!
  3350. *** 80 total error(s) with example code
  3351. Error in atexit._run_exitfuncs:
  3352. Traceback (most recent call last):
  3353.  File "conf.py", line 916, in xapian_check_examples
  3354.    raise SystemExit()
  3355. SystemExit
  3356.  
  3357. Build finished. The HTML pages are in _build/html.
Add Comment
Please, Sign In to add comment