<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a></div></div></div>
<br><div class="gmail_quote">On Fri, Jun 12, 2015 at 11:33 AM, Hao Ye <span dir="ltr"><<a href="mailto:hye@ucsd.edu" target="_blank">hye@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tim,<br>
<br>
My Rcpp package compiles fine with header files in /inst/include (and subfolders), but I do have the following line in my Makevars:<br>
<br>
> PKG_CXXFLAGS = -pedantic -Wall -I../inst/include<br>
<br>
You may need the last option there to add /inst/include to the search path.<br></blockquote><div><br></div><div>Thanks. I'll try it. I would have guessed that was a default.</div><div><br></div><div>THK</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best,<br>
--<br>
Hao Ye<br>
<a href="mailto:hye@ucsd.edu">hye@ucsd.edu</a><br>
<br>
> On Jun 12, 2015, at 9:19 AM, Tim Keitt <<a href="mailto:tkeitt@utexas.edu">tkeitt@utexas.edu</a>> wrote:<br>
><br>
> If I have<br>
><br>
> <pkg>/inst/include/pkg.h<br>
><br>
> that contains<br>
><br>
> #include<foo/bar.h><br>
><br>
> where "foo/bar.h" is in<br>
><br>
> <pkg>/inst/include/foo/bar.h<br>
><br>
> The header "bar.h" is not found. What is the standard way to do this? Put "bar.h" into <pkg>/src? It seems odd to alter Makevars adding a path to "<pkg>/inst/include/foo" as I would think that is automatic.<br>
><br>
> (Sorry is this is not an Rcpp question -- I am using Rcpp in the package.)<br>
><br>
> THK<br>
><br>
><br>
> _______________________________________________<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" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div><br></div></div>