Skip to content
Prev 70033 / 398506 Next

Loading a dynamic library

Hi,

I'm trying to load a .dll library into R 2.1.0 on Windows using the
"dyn.load" function.  The library is compiled with gcc 3.3.3 on cygwin
1.5.16.  

I compile and link:

$ gcc -c myfile.cpp -o myfile.o [HRT]
$ gcc -shared myfile.o -o myfile.dll [HRT]

I then type, in the R console,
And R hangs. 

Any help appreciated.

Thanks.

Will

_____________________________________________________________

William Astle.
PhD Student,
Department of Epidemiology and Public Health,
Imperial College London,
St Mary's Hospital Campus,
Norfolk Place,
Paddington.
W2 1NY.

wja [at] ic [dot] ac [dot] uk