[Rcpp-devel] Symbol not found when including an external library

Simon Zehnder szehnder at uni-bonn.de
Thu Sep 5 19:22:46 CEST 2013


Follow-up: I found a connection to this error when running through the libraries: the function for which the symbol is not found is defined in line 85  of the stl_list.h. It is included into the libstdc++.a/libstdc++.dylib which is linked to the nloptr/nlopt build. As the build inside R throws an error, but not so the standalone build I assume, that R uses another libstdc++ library....

Best

Simon

   
On Sep 5, 2013, at 2:17 PM, Simon Zehnder <szehnder at uni-bonn.de> wrote:

> Hi Dirk,
> 
> An important update to my message: 
> 
> I called install.packages("nloptr") and I get exactly the same error. So I think that something with my R and/or gcc installation is not correct. When I install nloptr on the linux server of our cluster all runs fine. The point, that I can build the nlopt library with my gcc compiler makes me hope to find the error in the R installation (R-patched 3.0.1, although I built the gcc with --disable-static). 
> 
> I have to find the error in my installation. The way you proposed should work. Thanks again for your help!
> 
> 
> Best
> 
> Simon
> 
> On Sep 5, 2013, at 1:37 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> 
>> 
>> Simon,
>> 
>> On 5 September 2013 at 12:44, Simon Zehnder wrote:
>> | Hi Dirk,
>> | 
>> | I was able to reconstruct my System this night and I immediately tried your suggestions: 
>> | 
>> | ii) Either using an absolute path nor repositioning the linking did work in my case.
>> 
>> Well then you need to try something else.  I would construct a two-file
>> library (as a static build) and a two-file R package to load it, in order to
>> work it out. It is doable; but I tend to have my code organized in a
>> different way.
>> 
>> No other immediate suggestion, sorry,
>> 
>> Dirk
>> 
>> -- 
>> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
> 
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel



More information about the Rcpp-devel mailing list