Re: [R] help on dyn.load()

From: Roger Bivand <>
Date: Mon 20 Feb 2006 - 18:13:49 EST

On Mon, 20 Feb 2006, Feng Tai wrote:

> Hi,
> I used .C to call the C functions inside R. Everything works fine on the
> linux sever.
> I installed cygwin on my windows xp x64 platform and used rcmd shlib xxx.c
> to compile. Everything works fine till now and xxx.dll is generated. But
> when I use dyn.load("xxx.dll") in R, it will open another R window and the
> original R window becomes "Not responding", nothing loaded in both R window.
> Anyone has similar experiences before. Thanks a lot.

It has been the case that you are recommended not to build shared library objects under Cygwin, but rather to follow the instructions in:

carefully - that is build under Windows using the chosen tools. The other .dll files you report functioning correctly were built in this way, so the easiest thing to do is to build in the same way.

> BTW: I tried some other .dll files from the existed library. everything
> works ok. so I think maybe something wrong with my C code. But why it works
> fine on the linux server? Any guess or suggestion for this?
> Feng
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!

Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Mon Feb 20 18:17:55 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:36 EST