Re: [R] Shared Library Error

2008-05-28 Thread what's in the name?
I also tried to compile things differently, f95 -fno-second-underscore -c -fPIC pattern_dist.f90 gcc -std=gnu99 -shared -L/usr -o pattern_dist.so pattern_dist.o now, I get the following error: Error in dyn.load("~/myfortran/pattern_dist.so") : unable to load shared library '/home/myfortran/pat

Re: [R] Shared Library Error

2008-05-24 Thread what's in the name?
Nope, it does not :( See below Error in .Fortran("merge_xtabs_patterns_file", ydim[1], ydim[2], x = as.integer(as.matrix(y)), : Fortran symbol name "merge_xtabs_patterns_file" not in load table On Sat, May 24, 2008 at 3:41 AM, Martin Maechler <[EMAIL PROTECTED]> wrote: > > "witn" == what

Re: [R] Shared Library Error

2008-05-24 Thread Martin Maechler
> "witn" == what's in the name? <[EMAIL PROTECTED]> > on Sat, 24 May 2008 02:47:02 -0500 writes: witn> R.version gives the following output >> R.version witn>_ platform x86_64-unknown-linux-gnu witn> arch x86_64 os linux-gnu system x86_64, linux-gnu

Re: [R] Shared Library Error

2008-05-24 Thread what's in the name?
R.version gives the following output > R.version _ platform x86_64-unknown-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 6.0 year 2007 month 10 day03 svn rev

Re: [R] Shared Library Error

2008-05-24 Thread Prof Brian Ripley
The problem is that underscore is an illegal symbol in a Fortran 77 name (and R only requires a Fortran 77 compiler). You have not told us your OS nor R version nor compiler+version (because what a compiler does with this is a compiler-specific extension). You should not be using the trailing

[R] Shared Library Error

2008-05-23 Thread what's in the name?
Can anyone help me resolve this? A part of the R function looks like this: print(is.loaded('merge_xtabs_patterns_file')) print(is.loaded('merge_xtabs_patterns_file_')) .Fortran('merge_xtabs_patterns_file_',ydim[1],ydim[2],x=as.integer(as.matrix(y)),na=as.integer(c), maxD=as.integer