<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&eacute;mi Lebret a &eacute;crit&nbsp;:
    <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
          &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 &#8216;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&#8217;:</div>
        <div>/usr/include/c++/4.2.1/tr1/functional_hash.h:144: error:
          &#8216;const struct std::basic_string&lt;char,
          std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;&#8217;
          has no member named &#8216;Rf_length&#8217;</div>
        <div>/usr/include/c++/4.2.1/tr1/functional_hash.h: In member
          function &#8216;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&#8217;:</div>
        <div>/usr/include/c++/4.2.1/tr1/functional_hash.h:156: error:
          &#8216;const struct std::basic_string&lt;wchar_t,
          std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt;
          &gt;&#8217; has no member named &#8216;Rf_length&#8217;</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&eacute;mi</div>
      <div><br>
        <div>
          <font face="Courier New" size="3">
            R&eacute;mi Lebret<br>
            Ing&eacute;nieur de recherche CNRS<br>
            Laboratoire de math&eacute;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>