[Rcpp-devel] building shared library error with sourceCpp
gbatoolfatima at gmail.com
Sat Dec 28 02:16:25 CET 2019
Could anyone please advice what is going on in the following error and how
can I fix it?
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include"
-fPIC -Wall -g -O2 -c trial.cpp -o trial.o
Error in sourceCpp("/Users/fatimabatool/documents/New/Rcodes/trial.cpp") :
Error 1 occurred building shared library.
clang: warning: no such sysroot directory:
In file included from trial.cpp:9:
In file included from /Users/fatimabatool/Documents/New/Rcodes/trial.hpp:12:
fatal error: 'stdio.h' file not found
1 error generated.
make: *** [trial.o] Error 1
I was able to source all .cpp files before system updates. I have recently
updated my MacOS to Catalina (10.15.2) and using Xcode 11.3. I am working
in R Action of the Toe. Using version 1.0.3 of Rcpp. I have clang version
I have Library/Developer but no ../CommandLineTools/SDKs/MAcOSX.sdk
subdirectories exist there.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel