I'm using Swig for creating R wrappers. I recently updated from
version 1.3.31 to version 1.3.37 and now I'm having a new problem.
I have a function called "functionname", defined in a functionname.c
file and declared in a functionname.i file, that I want to call from
R. So far I've always used successfully
swig -r functionname.i
PKG_LIBS="functionname.c" R CMD SHLIB functionname_wrap.c
and within R
source("functionname_wrap.R") #with version 1.3.37 this would be
Everything was working perfectly with version 1.3.31, but after
installing version 1.3.37, when I call functionname within R (version
2.8.1) I get:
.Call("R_swig_functionname", par1, par2, par3, :C symbol name
"R_swig_functionname" not in DLL for package "functionname"
So .Call is not seeing R_swig_functionname anymore. I checked with the
Unix command "nm" that R_swig_functionname is in the functionname.so
file generated with the compilation. The only relevant difference I
noticed comparing the output of nm called on functionname.so generated
with version 1.3.31 and on the same file generated with version 1.3.37
is that the former says that the symbol R_swig_functionname is of type
"t" and the latter that it is of type "T". Anybody has any ideas of
what is going on here?
Any help will be really appreciated! Thanks a lot,
Get latest updates about Open Source Projects, Conferences and News.