<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Greetings and Salutations,</div>
<div><br>
</div>
<div>See:</div>
<div><br>
</div>
<div><a href="http://thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/">http://thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/</a></div>
<div><br>
</div>
<div>Also, another example / more help setting up the dev environment on OS X is here:</div>
<div><br>
</div>
<div><a href="http://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-os-x/">http://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-os-x/</a></div>
<div><br>
</div>
<div>Happy Rcppin’</div>
<div><br>
</div>
<div>Sincerely,</div>
<div><br>
</div>
<div>JJB</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:rcpp-devel-bounces@lists.r-forge.r-project.org">rcpp-devel-bounces@lists.r-forge.r-project.org</a>> on behalf of "<a href="mailto:aakremena@aol.com">aakremena@aol.com</a>" <<a href="mailto:aakremena@aol.com">aakremena@aol.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, February 4, 2016 at 4:57 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:rcpp-devel@lists.r-forge.r-project.org">rcpp-devel@lists.r-forge.r-project.org</a>" <<a href="mailto:rcpp-devel@lists.r-forge.r-project.org">rcpp-devel@lists.r-forge.r-project.org</a>><br>
<span style="font-weight:bold">Subject: </span>[Rcpp-devel] Rcpp problem related to sourceCpp_1.so<br>
</div>
<div><br>
</div>
<div>
<div><font color="black" size="2" face="arial"><font face="arial" color="black" size="2"><font size="2"><font size="3">Hi everyone,</font><br>
<br>
<font size="3">My name is Anguel and I am new to this list.<br>
<br>
1. I am trying to implement some simple example of a C++ compiled function from Hadley Wickham's website (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__adv-2Dr.had.co.nz_Rcpp.html-23rcpp&d=BQMCaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Oj62bnDE1oueLU-seL9f0p1xxu4Hvw2JDuP8BUw91c8&m=WvdoHrvW5pvxSB9ksFcsptZw8fIa15tgk2vm6l-q3Sw&s=kpSJ5RNEN4SuABscb89E5CtCbR_XykCZ9MPBsGU6yBI&e=" target="_blank">http://adv-r.had.co.nz/Rcpp.html#rcpp</a>).<br>
In fact the function I am trying to compile is the first one:</font></font><br>
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(Rcpp)
<span class="co"></span><span class="kw">cppFunction</span>(<span class="st">'int add(int x, int y, int z) {</span><span class="st"> int sum = x + y + z;</span><span class="st"> return sum;</span><span class="st">}'</span>)<br><br></code><font face="Arial,Helvetica,sans-serif" size="3"> 2. Unfortunately I have immediately run into a problem, getting an error message:<br>
Error in dyn.load("/var/folders/12/bqytpkx93w97r3s3_h9q9k_00000gn/T//RtmprqDXCj/sourcecpp_23c71c355072/sourceCpp_1.so") : <br>
unable to load shared object '/var/folders/12/bqytpkx93w97r3s3_h9q9k_00000gn/T//RtmprqDXCj/sourcecpp_23c71c355072/sourceCpp_1.so':<br>
dlopen(/var/folders/12/bqytpkx93w97r3s3_h9q9k_00000gn/T//RtmprqDXCj/sourcecpp_23c71c355072/sourceCpp_1.so, 6): Symbol not found: ___addtf3<br>
Referenced from: /usr/local/lib/libquadmath.0.dylib<br>
Expected in: /usr/local/lib/libgcc_s.1.dylib<br>
in /usr/local/lib/libquadmath.0.dylib<br>
3. I am working on OS X Maverics (10.9.3) and I am using R3.2.0
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 2.0
year 2015
month 04
day 16
svn rev 68180
language R
version.string R version 3.2.0 (2015-04-16)
nickname Full of Ingredients <br>
4. I'm also using RcppArmadillo_0.6.500.4.0 and <br><br>
Rcpp_0.12.3<br><br>
5. I can't seem to find any suggestions on the Internet concerning such a problem (maybe somebody will direct me in this regard).
<br>
6. I'll be extremely thankful to everybody who can direct me as to how to proceed from here. Of course, I'll be glad to provide any other information should you decide to answer my e-mail and request it.<br><br>
Thank you in advance.<br><br>
Anguel<br></font></pre>
</font>
<div style="font-family:helvetica,arial;font-size:10pt;color:black">
<div id="AOLMsgPart_2_c861b3cf-3784-4a42-add7-26360ac0975b"><font face="arial" color="black" size="2"><br>
</font></div>
</div>
</font></div>
</div>
</span>
</body>
</html>