Skip to content
Back to formatted view

Raw Message

Message-ID: <MWHPR07MB3120839702064162E837D28B89980@MWHPR07MB3120.namprd07.prod.outlook.com>
Date: 2016-12-12T17:32:32Z
From: khagay nagdimov
Subject: [Rcpp-devel] Rcpp question regarding compilation of another package

Hello!


I am trying to create a package that uses Rcpp to translate code from SeqLib ( https://github.com/walaj/SeqLib) into R. I have compiled SeqLib but, I still have problems referencing the function definitions. The current structure of my R package is shown here: https://github.com/KhagayN/SeqLibr


My makevars links to the location of the header files and to the static libraries. To my understanding, the header files linked via PKG_CXXFLAGS point to the header files and PKG_LIBS points to the static libraries. Then, in rcpp_hello_world.cpp, I reference a function called Open within the FastqReader class within the SeqLib namespace but, when I run load_all() I get an effor saying:


Error in dyn.load(dllfile);

   unable to load shared object 'subsetSeqLib.so': undefined symbol: _ZN6SeqLib11FastqReader40OpenERKSs, which references that Open function from FastqReader. I don't understand why this is happening since I am linked to the static libraries that have the definition of that function.


Thanks for all the help.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20161212/b365598e/attachment.html>