<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Compilation on Solaris 11 fails as follows<br>
<br>
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC -D_REENTRANT<br>
-pthreads -DFFTWPP_SINGLE_THREAD -g -O3 -ansi -fno-var-tracking -I .<br>
-Igc-7.4.0/include -o interact.o -c interact.cc<br>
In file included from /usr/include/c++/4.8.2/ext/hash_map:60:0,<br>
from memory.h:27,<br>
from common.h:35,<br>
from interact.h:10,<br>
from interact.cc:17:<br>
/usr/include/c++/4.8.2/backward/backward_warning.h:32:2: 槕尾槕岐槕尿槕孝槕完槕妥槕尿槕尾槕尿槕妖槕孚槕岔槕孚:<br>
#warning This file includes at least one deprecated or antiquated header<br>
which may be removed without further notice at a future date. Please use a<br>
non-deprecated interface with equivalent functionality instead. For a<br>
listing of replacement headers and interfaces, consult the file<br>
backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]<br>
#warning</blockquote><div><br></div><div>I agree that this header is deprecated and should only be used on very old systems. It is strange</div><div>that it is being included at all. If __GNU_PREREQ(4,3) is true, unordered_map is used instead. See this excerpt from memory.h:</div>
<div><br></div><div>#ifndef __GNUC_PREREQ<br></div><div><div>#define __GNUC_PREREQ(maj, min) (0)</div><div>#endif</div></div><div><br></div><div>#ifndef NOHASH</div><div>#if __GNUC_PREREQ(4,3) || defined(__CYGWIN__)</div>
<div>#include <tr1/unordered_map></div><div>#define EXT std::tr1</div><div>#else</div><div>#define EXT __gnu_cxx</div><div>#include <ext/hash_map></div><div>#define unordered_map hash_map</div><div>#define unordered_multimap hash_multimap</div>
<div>#endif</div><div>#endif</div><div><br></div><div>Does gcc under Solaris not define __GNUC_PREREQ? In any case, I'll change this so that if GNUC_PREREQ is not defined unordered_map will be used by default.</div><div>
<br></div></div></div></div>