Error in dyn.load(dllfile) : unable to load shared object | Expected in: flat namespace
问题 I am new to R package development. I am developing a package (bartpkg) that has in its src/ folder one (prime) cpp file and some helper cpp ( X.Cpp , Y.Cpp ) and one c file ( Z.C ) and their header files ( X.h , Y.h and Z.h ) I am getting the following error when I do 'Build & Reload' in Rstudio. Error in dyn.load(dllfile) : unable to load shared object '/Users/abcd/BART/bart_pkg1/src/bartpkg.so': dlopen(/Users/abcd/BART/bart_pkg1/src/bartpkg.so, 6): Symbol not found: __ZN3RNG4nfixElm