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

From: Feng Tai <typhoon_zy_at_hotmail.com>
Date: Tue 21 Feb 2006 - 05:11:19 EST


Thanks a lot! It works now.

Feng

>From: Roger Bivand <Roger.Bivand@nhh.no>
>Reply-To: Roger.Bivand@nhh.no
>To: Feng Tai <typhoon_zy@hotmail.com>
>CC: r-help@stat.math.ethz.ch
>Subject: Re: [R] help on dyn.load()
>Date: Mon, 20 Feb 2006 08:13:49 +0100 (CET)
>
>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:
>
>http://www.murdoch-sutherland.com/Rtools/
>
>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
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
>http://www.R-project.org/posting-guide.html
> >
>
>--
>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
>e-mail: Roger.Bivand@nhh.no
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 21 05:21:01 2006

This archive was generated by hypermail 2.1.8 : Tue 21 Feb 2006 - 14:38:23 EST