I am writing an R package and I am trying to include some of the functionality of the Shogun toolbox for machine learning. I first included the shogun folder which contains the C++ functions in the /inst/include/
folder. I then added the following statements to my Makevars
and Makevars.win
files:
PKG_CPPFLAGS = -I../inst/include/
I then tried a test so in a file called test.cpp
which I placed in /src
, and which includes the following:
#include <shogun/lib/config.h>
and I get the error: test.cpp: fatal error: shogun/lib/config.h: No such file or directory
compilation terminated.
What am I doing wrong?