<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 -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/2.14/Resources/library/Rcpp/include" -fPIC -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> from /Library/Frameworks/R.framework/Versions/2.14/Resources/library/Rcpp/include/RcppCommon.h:130,</div><div> from /Library/Frameworks/R.framework/Versions/2.14/Resources/library/Rcpp/include/Rcpp.h:27,</div><div> from clusteringMain.cpp:91:</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h: In member function ‘size_t std::tr1::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::operator()(const std::string&) const’:</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h:144: error: ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ 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<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >::operator()(const std::wstring&) const’:</div><div>/usr/include/c++/4.2.1/tr1/functional_hash.h:156: error: ‘const struct std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’ 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>