Hello r-helpers,
I am new to Rtools and would like to build dll's from fortran subroutines for
use within R.
I have had no luck compiling the following simple fortran code;
c sample subroutine to include for R
subroutine multiply(ax,bx,cx)
implicit none
integer ax,bx,cx
Hi,
I am running Linux (64 bit) R, compiled under gnu compilers. I am looking
to compile a Fortran program with the ifort (the intel compiler) and then be
able to import that as a library into my version of R. I am using the
flags FC=ifort and SHLIB_FCLD=ifort, however ifort does not seem to
I don't have any idea about linking Fortran to R, but if I did I am sure I
would want complete command lines and error messages before I looked at your
problem.
---
Jeff Newmiller The . . Go Live...
Hi!
I'm a new programmer in R
Last week i wrote many function in C and i used R CMD SHLIB to make dll.
Since friday i have this error:
cygwin warning:
MS-DOS style path detected: C:\PROGRA~1\R\R-211~1.1/bin/SHLIB.sh
Preferred POSIX equivalent is:
Hi,
I'm trying to write a function in C for implementation with .Call. When
compiling using R CMD SHLIB characters seem to be added to the function
name.
Here's the complete C code from the file summariseMCMC.c:
#includeR.h
#includeRdefines.h
#includeRinternals.h
void summariseMCMC(SEXP
On Fri, 8 Oct 2010, Steve Pederson wrote:
Hi,
I'm trying to write a function in C for implementation with .Call. When
compiling using R CMD SHLIB characters seem to be added to the function name.
Here's the complete C code from the file summariseMCMC.c:
#includeR.h
#includeRdefines.h
Hi Prof Ripley,
Thanks for the response the use of the correct terminology. I've
checked the environment variables there is none set called CC.
The .dll was definitely compiled using R CMD SHLIB. I'm not quite sure
what output you're referring to but at the command prompt when I enter:
I think I should also add that I have compiled R from source so am
pretty confident that I have the correct set of Rtools.
On 8/10/2010 8:06 PM, Prof Brian Ripley wrote:
On Fri, 8 Oct 2010, Steve Pederson wrote:
Hi,
I'm trying to write a function in C for implementation with .Call.
When
Date: Sat, 9 Oct 2010 01:21:47 +1030
From: stephen.peder...@adelaide.edu.au
To: rip...@stats.ox.ac.uk
CC: r-help@r-project.org
Subject: Re: [R] R CMD SHLIB changes function name when compiling
I think I should also add that I have compiled R
Is the file .c or .C? You said .c, but then you said a .C file
worked (which it should not have), and I wonder if you have this
backwards.
A .c file is C, a .C file is C++ (in R 2.11.1 but not R 2.12.0).
extern C would be required if this were a C++ source, but we were
told otherwise.
On
It seems that was the problem. My apologies as I was unaware of the
difference between a .c file a .C file.
Thanks again for your help,
Steve
On 9/10/2010 1:37 AM, Prof Brian Ripley wrote:
Is the file .c or .C? You said .c, but then you said a .C file worked
(which it should not have),
A few years ago I used the following to compile a shared object that I
wanted to call from R and it worked just fine.
R CMD SHLIB -o ~/my_C/R.shared.so/cocite.mat.so cocite.mat.c
Now when it is executed I receive the following error message:
make: *** No rule to make target `cocite.mat.o', needed
Hello Dirk,
thank you for your chick answer.
I tried another file and there it works. so i removed all files
which were created during of the compilation of add.c in windows
and so i could compile it under ubuntu too. During the windows
compilation there is some *.o file which is created during
From the help page:
'R CMD SHLIB' is the mechanism used by 'INSTALL' to compile source
code in packages. Please consult section 'Creating shared objects'
in the manual 'Writing R Extensions' for how to customize it (for
example to add 'cpp' flags and to add libraries to the link
Andreas Wittmann wrote:
Hello Dirk,
thank you for your chick answer.
I tried another file and there it works. so i removed all files
which were created during of the compilation of add.c in windows
and so i could compile it under ubuntu too. During the windows
compilation there is some *.o file
Dear R useRs,
on ubuntu 8.04 i try to create a shared object out of a c-file
this is
// add.c
#include Rinternals.h
SEXP addiere(SEXP a, SEXP b)
{
int i, n;
n = length(a);
for (i = 0; i n; i++)
REAL(a)[i] += REAL(b)[i];
return(a);
}
in terminal i type
R CMD SHLIB add.c
and get
gcc
On Sun, Oct 19, 2008 at 01:27:06AM +0200, Andreas Wittmann wrote:
Dear R useRs,
on ubuntu 8.04 i try to create a shared object out of a c-file
this is
// add.c
#include Rinternals.h
SEXP addiere(SEXP a, SEXP b)
{
int i, n;
n = length(a);
for (i = 0; i n; i++)
REAL(a)[i] +=
I got errors when I tried to compile my code into dll on XP box.
C:/R/R-2.6.2/src/gnuwin32/MkRules:235: warning: overriding commands for
target `.c.d'
C:/R/R-2.6.2/src/gnuwin32/MkRules:223: warning: ignoring old commands for
target `.c.d'
C:/R/R-2.6.2/src/gnuwin32/MkRules:255: warning:
Using 'mingw32-make' indicates that you have not followed the instructions
accurately. You *must* have the Rtools/bin directory ahead of all other
tools in your PATH.
Please check again (and again) that you have followed the prescription in
'R Installation and Administration'.
On Wed, 19 Mar
Thanks Prof. Brain,
Following your suggestion I found the reason of my problem in the document
''R Installation and Administration' and the links it points to'.
After I updated to R2.6.2, the RTools's default compiler chaged to gcc4
while I was using 3.4.x. The error disappeared after I
Brain indeed.
On Mar 19, 2008, at 11:21 AM, sun wrote:
Thanks Prof. Brain,
Following your suggestion I found the reason of my problem in the
document
''R Installation and Administration' and the links it points to'.
After I updated to R2.6.2, the RTools's default compiler chaged to
gcc4
oops, forgive me for the typo.
Benilton Carvalho [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Hello,
I have been having a great deal of difficulty using R CMD SHLIB to
generate the .so file from my C file. I am using Win XP, and I have
cygwin installed. I updated to the latest MinGW make files in order to
get rid of some error. But I still get a few warnings (shown below), and
no
On Tue, 12 Feb 2008, Deepak Chandran wrote:
Hello,
I have been having a great deal of difficulty using R CMD SHLIB to
generate the .so file from my C file. I am using Win XP, and I have
cygwin installed.
Not surprising: there are no .so objects on Windows. Also, we don't
support Cygwin,
This is clearly a compiler configuration error, not an R error. I note
that you have c:\Rtools\MinGW\libexec\gcc\mingw32\3.4.5 in your path,
which is *not* part of the instructions for R 2.6.0. Please try again
without it.
On Sat, 3 Nov 2007, McKay Curtis wrote:
Hello,
I am trying to
Thanks Prof. Ripley.
I removed that snippet from my path, and R CMD SHLIB works like a dream...
Thanks again,
McKay
On Nov 4, 2007 2:32 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote:
This is clearly a compiler configuration error, not an R error. I note
that you have
Hello,
I am trying to compile C code using the R CMD SHLIB command. I get this error:
R CMD SHLIB gibbs.c
making gibbs.d from gibbs.c
gibbs.c:0: error: bad value (generic) for -mtune= switch
make: [gibbs.d] Error 1 (ignored)
cat: gibbs.d: No such file or directory
make: [makeMakedeps] Error 1
27 matches
Mail list logo