Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from <built-in>:1:
In file included from /Users/myname/Library/R/3.5/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:13:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:82:
In file included from /usr/local/clang6/include/c++/v1/new:91:
In file included from /usr/local/clang6/include/c++/v1/exception:82:
In file included from /usr/local/clang6/include/c++/v1/cstdlib:86:
/usr/local/clang6/include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
^~~~~~~~~~
1 error generated.
make: *** [file6271b3da8a4.o] Error 1
I cannot seem to get the C++ example to Run in Rccp. Can someone point a new user in the right direction?
That didn’t change the output, but here is more of the output that might be relevant:
In file included from /usr/local/clang6/include/c++/v1/cstdlib:86:
/usr/local/clang6/include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
^~~~~~~~~~
1 error generated.
make: *** [helloworld.o] Error 1
Error in Rcpp::sourceCpp("/Users/.../helloworld.cpp", :
Error 1 occurred building shared library.
I have installed this and now when I run the Rccp snippet, I get the following error:
clang-7: error: no such file or directory: '/Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib'
make: *** [sourceCpp_5.so] Error 1
Error in Rcpp::sourceCpp("/Users/.../helloworld.cpp", :
Error 1 occurred building shared library.