[Rcpp-devel] loading failed
Dirk Eddelbuettel
edd at debian.org
Tue May 5 16:14:32 CEST 2015
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 at 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 at 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 | edd at debian.org
More information about the Rcpp-devel
mailing list