[R] I can´t run the example shown in the inline package
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sat Apr 10 20:00:52 CEST 2010
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
More information about the R-help
mailing list