<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Bonjour Remi, <br>
<br>
Could you send a reproducible example using tr1::unordered_map so
that we can help you. <br>
<br>
Cordialement, <br>
<br>
Romain<br>
<br>
Le 07/12/11 16:55, Rémi Lebret a écrit :
<blockquote
cite="mid:6C2E7A28-AFBC-44D8-AC22-BE8058E09A92@math.univ-lille1.fr"
type="cite">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 moz-do-not-send="true"
href="mailto:remi.lebret@math.univ-lille1.fr">remi.lebret@math.univ-lille1.fr</a><br>
</font>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rcpp-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Romain Francois
Professional R Enthusiast
<a class="moz-txt-link-freetext" href="http://romainfrancois.blog.free.fr">http://romainfrancois.blog.free.fr</a></pre>
</body>
</html>