<div dir="ltr"><div style="font-size:12.8000001907349px">William,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">To close this point on the use of Rdefines.h on the list it was my oversight to include all the R header files.  I have now removed them.  I initially only retained those headers as the initial package contained them.  I was unaware that Rcpp includes the necessary components and I can use the Rf_ prefix.  The problem has now been solved as I use the Rf_ prefix and define R_NO_REMAP.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Regards,</div><div style="font-size:12.8000001907349px">Charles</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 9:36 AM, William Dunlap <span dir="ltr"><<a href="mailto:wdunlap@tibco.com" target="_blank">wdunlap@tibco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why do you include "Rdefines.h" in your Rcpp code?  It contains errors (e.g., it leaves the initial Rf_ off of the length function).  Also, in my opinion, it is obsolete, especially for Rcpp code, since it is for writing code that works in R and S (including S+) and Rcpp will never work in S+.</div><div class="gmail_extra"><span class=""><br clear="all"><div><div>Bill Dunlap<br>TIBCO Software<br>wdunlap <a href="http://tibco.com" target="_blank">tibco.com</a></div></div>
<br></span><div class="gmail_quote"><div><div class="h5">On Wed, Feb 25, 2015 at 7:26 AM, Charles Determan Jr <span dir="ltr"><<a href="mailto:deter088@umn.edu" target="_blank">deter088@umn.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I have finally solved the problem.  After coming across another posting <a href="http://r.789695.n4.nabble.com/rtools-fstream-error-td4702713.html" target="_blank">http://r.789695.n4.nabble.com/rtools-fstream-error-td4702713.html</a> I discovered the problem.  I needed to include #define R_NO_REMAP at the start of my file and then append Rf_ to any function I use from Rdefines.h.  The package now compiles without error.<div><br></div><div>Thanks for your help Dirk, I know this was a long chain back and forth.</div><div><br></div><div>Regards,</div><div>Charles</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 7:36 AM, Charles Determan Jr <span dir="ltr"><<a href="mailto:deter088@umn.edu" target="_blank">deter088@umn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My apologies, I should have just did this from the start.  I thought it may be something simple.  I create a git repo to access the stripped down package (just the first cpp function and a simple R function).  If you clone it with:<div><br></div><div>git clone <a href="https://github.com/cdeterman/test.git" target="_blank">https://github.com/cdeterman/test.git</a></div><div><br></div><div>And try to build it you will get the errors I keep mentioning.  If you switch #include <RcppArmadillo.h> to <Rcpp.h> it will compile fine.</div><div><br></div><div>I truly do appreciate the help from this list, thank you for taking the time for this.</div><div><br></div><div>Best regards,</div><div>Charles</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 3:52 PM, 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"><br>
Hi Charles,<br>
<br>
I understand this is frustrating for you but we are wasting everybody's time<br>
here.  Can you please prepare a minimally reproducible example?<br>
<br>
Also, maybe try some bisection. Does the problem go away after you remove<br>
bigmemory/bigalgebra?<br>
<div><div><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</div></div></blockquote></div><br><br clear="all"><span><font color="#888888"><div><br></div></font></span></div></div><span><font color="#888888"><span>-- <br><div><div dir="ltr">Dr. Charles Determan, PhD<br>Integrated Biosciences<br></div></div>
</span></font></span></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Dr. Charles Determan, PhD<br>Integrated Biosciences<br></div></div>
</font></span></div>
<br></div></div><span class="">_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">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></span></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Charles Determan, PhD<br>Integrated Biosciences<br></div></div>
</div>