I have written a code in C++ which uses boost library and also uses multiple files. I am trying to execute the function in R.
Here is my C++ function prototype:
extern "C" double function1(double rho, double mu, double limit);
Here is my R function:
dyn.load('path_to_dll\\x64\\Debug\\project.dll')
.Call("function1", as.double(1.0), mu = as.double(1.0/20.0), limit = as.double(3413.85))
When I am calling the function, it gives me following error:
Error in .Call("function1", as.double(1), mu = as.double(1/20), :
C symbol name "function1" not in load table
I have followed this But no luck. Where am I going wrong?