AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() ![]() Which I basically just copied from another package, more because my understanding with Rcpp and the which flags to work with is really less. I have a Makevars in the src/ directory just having one line PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` ![]() I am able to see that all the cpp files generate respective object files, but I dont see anything like that for the C file. C file RNG.C and is because of a function 'nfix'.īut even if I remove the function 'nfix' or remove the RNG.C file altogether, the same error:Ĭan it be a flag issue that my compiler is not able to compile the 'C' file? Symbol not found: _ZN3RNG4nfi圎lm' is coming from the. I tried in the terminal this command c++filt -n _ZN3RNG4nfi圎lm and was able to see that the symbol in the error I am able to see the bartpkg.so shared object file in the src/ directory. #include Īnd my NAMESPACE file shows useDynLib(bartpkg) correctly. R file has directive #' bartpkg in the right place.Īlso, the prime cpp file has the following tags in the right place. I have followed the basic guidelines to build the package. > load_all -> load_dll -> library.dynam2 -> dyn.load In /Users/abcd/BART/bart_pkg1/src/bartpkg.soĬalls: suppressPackageStartupMessages. Referenced from: /Users/abcd/BART/bart_pkg1/src/bartpkg.so Unable to load shared object '/Users/abcd/BART/bart_pkg1/src/bartpkg.so':ĭlopen(/Users/abcd/BART/bart_pkg1/src/bartpkg.so, 6): Symbol not found: _ZN3RNG4nfi圎lm I am getting the following error when I do 'Build & Reload' in Rstudio. 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) ![]()
0 Comments
Read More
Leave a Reply. |