Hello dear list members,

I'm working the an a package with Rcpp code, and would like to have a cpp
function in one file, and then be able to access it from another.
It appears that using:
#include "file_name.hpp"
Works great while compiling.

However, when debugging the file, I discovered the when I use "sourceCpp"
on the file which has "#include", it is not able to find the other
functions and I get:

fatal error: src/is_functions.hpp: No such file or directory compilation
terminated. make: *** [get_branches_heights.o] Error 1
Error in Rcpp::sourceCpp("src/get_branches_heights.cpp") :
  Error 1 occurred building shared library.


I've tried using:
#include "src/file_name.hpp"
instead, but it didn't help either.

Is there something I'm missing?


Thanks.





----------------Contact
Details:-------------------------------------------------------
Contact me: [email protected] |
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to