<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I got this error when I'm trying to compile my package using Rcpp :</div><div><div><br></div><div>g++-4.2 -arch i386 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 &nbsp;-I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/2.14/Resources/library/Rcpp/include" &nbsp; -fPIC &nbsp;-g -O2 -c clusteringMain.cpp -o clusteringMain.o</div><div>In file included from /usr/include/c++/4.2.1/tr1/unordered_map:38,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /Library/Frameworks/R.framework/Versions/2.14/Resources/library/Rcpp/include/RcppCommon.h:130,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /Library/Frameworks/R.framework/Versions/2.14/Resources/library/Rcpp/include/Rcpp.h:27,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from clusteringMain.cpp:91:</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h: In member function ‘size_t std::tr1::hash&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;::operator()(const std::string&amp;) const’:</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h:144: error: ‘const struct std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;’ has no member named ‘Rf_length’</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h: In member function ‘size_t std::tr1::hash&lt;std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; &gt;::operator()(const std::wstring&amp;) const’:</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h:156: error: ‘const struct std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;’ has no member named ‘Rf_length’</div><div>make: *** [clusteringMain.o] Error 1</div></div><div><br></div><div>It looks like there is a problem with the tr1::unordered_map</div><div><br></div>Any help ?<div><br></div><div>Rémi</div><div><br><div>
<font face="Courier New" size="3">
Rémi Lebret<br>
Ingénieur de recherche CNRS<br>
Laboratoire de mathématiques de Lille1 - UMR 8524<br>
Batiment M3 - Bureau 322<br>
Tel: 03 20 43 67 82<br>
<a href="mailto:remi.lebret@math.univ-lille1.fr">remi.lebret@math.univ-lille1.fr</a><br>
</font>


</div>
<br></div></body></html>