Skip to content
Back to formatted view

Raw Message

Message-ID: <81CAC031-12D7-4FFB-A2E2-2C1DD1F6DF78@r-enthusiasts.com>
Date: 2012-12-21T12:04:19Z
From: Romain Francois
Subject: [Rcpp-devel] Rcpp and C++ mangling
In-Reply-To: <20121221111254.AAE5BE6726@smtp.hushmail.com>

Are you linking against the gretl library ?


Le 21 d?c. 2012 ? 12:12, jean.p at hushmail.com a ?crit :

> hi,
> 
> a quick question regarding a Rcpp function I wrote using an external library (gretl) : 
> 
> with the help of a makefile (adapted from the convolution Rcpp example), the code compiles just fine and turns into a shared object in linux (.so file)
> 
> however, when I then try to load the newly created shared library into R using dyn.load, I get the following error message:
> 
> dyn.load("/home/jean/Documents/code experiments/gretl/test2.so")
> Error in dyn.load("/home/jean/Documents/code experiments/gretl/test2.so") : 
>   unable to load shared object '/home/jean/Documents/code experiments/gretl/test2.so':
>   /home/jean/Documents/code experiments/gretl/test2.so: undefined symbol: _Z13kalman_smoothP7kalman_PP13gretl_matrix_S3_Pi
> 
> The undefined symbol is in fact (after c++ unmangling) kalman_smooth(kalman_*, gretl_matrix_**, gretl_matrix_**, int*), a function from the gretl library
> 
> Do you think the problem comes from the c++ mangling of gretl's  C library or is it rather linked to internals of gretl ?
> 
> many thanks for your help!
> 
> jean
> 
> 
> 
> 
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121221/d26f109b/attachment.html>