<div dir="ltr">Hi Peng,<div><br></div><div style>On your side, I don't understand why you're getting this output:</div><div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">-I/Library/Frameworks/R.</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">framework/Resources/include -DNDEBUG  -Wall</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">-I/usr/local/include -I"/Users/py/utility/R_user/</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Rcpp/include"   -fPIC</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> -mtune=core2 -g -O2  -c rcpp_hello_world.cpp -o rcpp_hello_world.o</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">llvm-g++-4.2 -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">names</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">-undefined dynamic_lookup -single_module -multiply_defined suppress</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">-L/usr/local/lib -L/usr/local/lib -o mypackage.so rcpp_hello_world.o ></span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Rcpp:::LdFlags() /Users/py/utility/R_user/Rcpp/</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">lib/libRcpp.a> ></span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">-F/Library/Frameworks/R.</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">framework/.. -framework R -Wl,-framework</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">-Wl,CoreFoundation</span><br></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div style>
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ie, why is Rcpp:::LdFlags() getting tossed in there as-is rather than being evaluated and inserting the libRcpp.a library location? Not to mention the extraneous '>'s. Perhaps you've manually set the R_HOME environment variable and it's out of sync with the location of your current R installation?</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div style><font face="arial, sans-serif">It looks to me like there is something strange with how things are set up on your machine, but it's difficult to diagnose what.</font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">-Kevin</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 25, 2013 at 6:19 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 25 May 2013 at 06:29, Peng Yu wrote:<br>
| Hi,<br>
|<br>
| The following shows the difference between the outputs of<br>
| Rcpp.package.skeleton of version 0.9.13 and 0.10.3. The output from<br>
| 0.10.3 can not be installed correctly. The difference is in<br>
| src/Makefile. Does anybody has similar problem with 0.10.3?<br>
<br>
</div>[ You meant src/Makevars. Details matter. ]<br>
<br>
No we do not, and building a package via Rcpp.package.skeleton() has been<br>
part of the normal 'R CMD check' for years, this generally works.<br>
<br>
Including on OS X.<br>
<br>
I don't have that platform, so I cannot help you.  If you really believe that<br>
0.9.13 is better for you, you are of course free to use 0.9.13.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">-Kevin</div>
</div>