Thanks for the coaching, Dirk. It prompted me to create a set of small/toy packages that employ some of the RcppArmadillo templates I utilize in my package , but I am yet unable to reproduce the errors I find when attempting to build my pacakge on a Mac - these toy packages build without issue on the Mac installations on which I'm experimenting. So my issue relates to a large package I've built under Rcpp and RcppArmadillo, with many functions. The package builds and installs under X86-64 and X86-32 Windows platforms without issue. So is it possible to offer any comment or tips based on intuition to help me focus on areas to investigate?<div>
<br></div><div>In summary, I receive two errors when linking:</div><div><br></div><div><span style="background-color:rgb(255, 255, 255)"><p class="MsoNormal" style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px">
<span style="font-size:10.5pt;font-family:Calibri, sans-serif"><font color="#cc0000">/Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/lib/x86_64/libRcpp.a: line 1: syntax error near unexpected token `newline'</font></span></p>
<p class="MsoNormal" style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px"><span style="font-size:10.5pt;font-family:Calibri, sans-serif"><font color="#cc0000">/Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/lib/x86_64/libRcpp.a: line 1: `!<arch>'</font></span></p>
<p class="MsoNormal" style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px"><span style="font-size:10.5pt;font-family:Calibri, sans-serif"><font color="#cc0000"><br></font></span></p></span><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><p class="MsoNormal" style="color:rgb(34, 34, 34)">
<span style="font-size:10.5pt;color:black">Error in dyn.load(file, DLLpath = DLLpath, ...) : </span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri, sans-serif"><font color="#cc0000"> unable to load shared object '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64/growcurves.so':</font></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri, sans-serif"><font color="#cc0000"> dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64/growcurves.so, 6): Symbol not found: __ZTIN4Rcpp12not_a_matrixE</font></span></p>
</span><span style="background-color:rgb(255, 255, 255)"><p class="MsoNormal" style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px"><span style="font-size:10.5pt;font-family:Calibri, sans-serif"><font color="#cc0000"><br>
</font></span></p></span></div><div>A very similar looking error to this second error was previously posted on the Rcpp list, but it related to the creation of templates by the person posting. I have not created any templated classes, so I wonder if the second error I'm encountering is linked to the first. So far I know that simple packages created under RcppArmadillo build without issue on the same Macs producing these errors with my package. I also know my package builds, checks and installs with no warnings or other issues on Windows machines. I've checked for errors in my Makefile and/or header declarations to explain the first error, but don't see any issues.</div>
<div><br></div><div>A package tarball is located at the link, below, should anyone wish to attempt to build it. </div><div><br></div><div><a href="https://docs.google.com/leaf?id=0B0DIDcaf6yMwMWY5ODQxNDItMDcxNC00ZTVkLThkYzMtNTkzZDQ2NTI2OTUx&hl=en_US">https://docs.google.com/leaf?id=0B0DIDcaf6yMwMWY5ODQxNDItMDcxNC00ZTVkLThkYzMtNTkzZDQ2NTI2OTUx&hl=en_US</a></div>
<div><br></div><div>Thank you for your guidance, Terrance.</div>
<div><br></div><div><br></div><div><br></div><div><div><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 11:22 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><br>
On 20 October 2011 at 10:13, terrance savitsky wrote:<br>
| Hello again Rcpp Experts, I would appreciate any insight or guidance you may<br>
| offer on the errors (noted in red, below) when trying to build a package<br>
<br>
</div>I don't read html email so color is lost.<br>
<br>
Also note that I suspect that you got no reply last time because you<br>
<br>
did not send a reproducible example<br>
<br>
which is a minimum. For everybody else, things work, incluing CRAN and its tests.<br>
<div><br>
| Here are the error messages:<br>
|<br>
|<br>
| /Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/lib/<br>
| x86_64/libRcpp.a: line 1: syntax error near unexpected token `newline'<br>
|<br>
| /Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/lib/<br>
| x86_64/libRcpp.a: line 1: `!<arch>'<br>
<br>
</div>I suggest you examine these files.<br>
<br>
And if you need to come back, come back with a minimial, reproducible example<br>
exhibitiing the error in question.<br>
<br>
You are getting help for free here, but we cannot read inside your mind or<br>
your computer.<br>
<br>
Dirk<br>
<font color="#888888"><br>
--<br>
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too<br>
dark to read." -- Groucho Marx<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thank you, Terrance Savitsky<br>
</div></div>