<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    (please keep ccing the list) <br>
    <br>
    neither do we use unordered_map, IIRC. <br>
    Without a reproducible example, there is very little I can do to
    help. I have no idea what is in clusteringMain. <br>
    <br>
    Romain<br>
    <br>
    Le 07/12/11 17:22, Rémi Lebret a écrit :
    <blockquote
      cite="mid:88B98433-6BF9-470E-AB0D-8CBC92C0271F@math.univ-lille1.fr"
      type="cite">Cher Romain,
      <div><br>
      </div>
      <div>I don't use any tr1::unordered_map function in my program.</div>
      <div><br>
      </div>
      <div>The error comes from the inclusion of &lt;Rcpp.h&gt; (line
        91) in my main.cpp</div>
      <div><br>
      </div>
      <div>And the package compiles fine under Linux.</div>
      <div><br>
      </div>
      <div>Rémi</div>
      <div><br>
        <div>
          <div>Le 7 déc. 2011 à 16:59, Romain François a écrit :</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta content="text/html; charset=windows-1252"
              http-equiv="Content-Type">
            <div 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&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 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://romainfrancois.blog.free.fr/">http://romainfrancois.blog.free.fr</a></pre>
            </div>
            _______________________________________________<br>
            Rcpp-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<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></blockquote>
        </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>
    </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>