On 09.04.2010 17:43, satu wrote:
Dear Romain, you are right. Apologies, here is the complete result from your
script:
code<- '#include<Rdefines.h>\nSEXP f(){\n return R_NilValue ; }'
writeLines( code, "test.c" )
system( "R CMD SHLIB test.c" )
gcc -I"C:/R/R-210~1.1/include" -O3 -Wall -std=gnu99 -c test.c -o
test.o
gcc -shared -s -o test.dll tmp.def test.o -LC:/R/R-210~1.1/bin -lR
dyn.load( "test.so" )
On Windows it is names "test.dll".
Uwe Ligges
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library 'C:/Documents and Settings/L01359.BCRA/Mis
documentos/R/test.so':
LoadLibrary failure: No se puede encontrar el módulo especificado.>
.Call( "f" )
Error in .Call("f") : C symbol name "f" not in load table
The system(,,,) bit seems to work, but then errors show up
Sergio
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.