Please share your code. KK
On 14 Jul 2017 12:31 a.m., "Johannes Signer" <jsig...@gwdg.de> wrote: > Dear Rcpp-Developers, > > I have an R-package with some Rcpp code. If I build and install the > package (`devtools::build()` and `devtools::install()`) everything works > fine. > > But, when I check the package for CRAN submission (`devtools::check()`), I > keep getting the following error: > > ** testing if installed package can be loaded > Error: package or namespace load failed for ‘amt’ in dyn.load(file, > DLLpath = DLLpath, ...): > unable to load shared object '/tmp/RtmpLvrxAO/amt.Rcheck/am > t/libs/amt.so': > /tmp/RtmpLvrxAO/amt.Rcheck/amt/libs/amt.so: undefined symbol: > _Z11within_rcppN4Rcpp6VectorILi14ENS_15PreserveStorageEEEii > Error: loading failed > Execution halted > ERROR: loading failed > > I thought it maybe has something to do with the function `within_rcpp`, > but when I remove this function from the source, the next function occurs > with the same error (only a different function name). > > I would appreciate any hints about how to resolve this error, or where it > comes from. > > Many thanks, > Johannes > _______________________________________________ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel