On 5 May 2015 at 14:30, Fabio Tordini wrote:
| Everything compiles fine, but then it fails when loading the package:
| 
| ** testing if installed package can be loaded
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
|    unable to load shared object 
| '/home/fabio/R/x86_64-pc-linux-gnu-library/3.0/NgrapH/libs/NgrapH.so':
|    /home/fabio/R/x86_64-pc-linux-gnu-library/3.0/NgrapH/libs/NgrapH.so: 
| undefined symbol: _ZN6Finder10parseFilesESsSsSs
| Error: loading failed
| 
| What could possibly be the problem?

edd@max:~$ c++filt _ZN6Finder10parseFilesESsSsSs
Finder::parseFiles(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >)
edd@max:~$ 

You seem to instantiate Finder::parseFiles without providing (object) code
for it.  As you example is incomplete and irreproducible we can only guess.
Maybe you forgot to link to another library.  Maybe you forgot a source file.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
_______________________________________________
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

Reply via email to