Displaying 20 results from an estimated 10000 matches similar to: "R CMD SHLIB uses foo.c instead of foo.cc if both are present (PR#2648)"
2003 Mar 16
1
R CMD SHLIB uses foo.c instead of foo.cc if both are present (PR#2645)
On Sun, 16 Mar 2003, Duncan Temple Lang wrote:
> The "fix" is relatively simple. One can change the order of the
> suffixes listed in $R_HOME/etc/Makeconf (i.e. the Makeconf.in version)
> to alter the precedence. If one changes the line
>
> .SUFFIXES: .c .cc .cpp .C .d .f .lo .o
>
> to place the '.c' after the '.cc', your example will work as you
2003 Mar 16
1
R CMD SHLIB uses foo.c instead of foo.cc if both are present (PR#2644)
Full_Name: Faheem Mitha
Version: 1.6.2
OS: Debian GNU/Linux
Submission from: (NULL) (209.42.199.193)
Suppose you are making a shared library using
R CMD SHLIB foo.cc
If there is a file called foo.c in the same directory, then it will be used
instead.
faheem ~/scratch/r-base>R CMD SHLIB foo.cc
gcc-3.0 -I/usr/lib/R/include -D__NO_MATH_INLINES -mieee-fp -fPIC -g -O2
-c foo.c -o foo.o
2001 Mar 13
1
passing arguments to R CMD SHLIB
Dear People,
I want to run gcc with optimisation turned on (-O2), and with -Wall (all
warnings) enabled, when using R CMD SHLIB. When I do make, which is
R CMD SHLIB -Wall -O2 cftp.c mcmc.c latticefn.c -lm
in this case, I get
faheem ~/research/cftp>make
R CMD SHLIB -Wall -O2 cftp.c mcmc.c latticefn.c -lm
make[1]: Entering directory `/home/faheem/research/cftp'
gcc -I/usr/lib/R/include
2002 Jun 13
1
using MAKEFLAGS in compiling C code as a shared library using R CMD SHLIB
Dear R People,
in the R FAQ (in the R Programming section) it says
**********************************************************************
How can I change compilation flags?
===================================
Suppose you have C code file for dynloading into R, but you want to
use `R CMD SHLIB' with compilation flags other than the default ones
(which were determined when R was built).
2001 Nov 17
2
choosing g/g++ compiler executable in R CMD SHLIB
Dear People,
After considerable effort, I managed to install gcc-3.0 on my Debian
system. However, Debian keeps gcc-2.95 around as the default compiler, and
gcc, g++ point to the 2.95 version. The 3.0 versions need to be explicitly
invoked as gcc-3.0, g++-3.0 etc. How can I get R CMD SHLIB to invoke
gcc-3.0 instead of gcc and g++-3.0 instead of g++? I would like this to be
done by default but
2012 Feb 14
2
R CMD SHLIB in Windows XP - No output at all
Hello all,
I'm trying hard to make R CMD SHLIB work on Windows XP (32-bit) - please
note that I don't have the admin rights on the computer.
In terms of setup, I have followed the procedure :
=> installed Rtools 2.14
=> changed my path :
PATH=C:\Trading\R\RTools\bin;C:\Trading\R\RTools\MinGW\bin;C:\Trading\R\R-2.14.1\bin\i386;C:\WINDOWS\system32;%OTHER_PATHS%
But when I try R CMD
2014 Jun 27
0
R CMD SHLIB failure (Win7 64-bit OS)
Dear all,
I am struggling to get the 'Rtools' tool chain to successfully build .dlls
using the "R CMD SHLIB" method on my home Win7 64-bit (Ultimate) PC.
Strangely I did get it working on my work PC (also Win7 64-bit but
Enterprise) so I am totally at a loss as to what to do.
When I type, "R CMD SHLIB foo.c" using the Command Prompt I get:
make: *** No rule to make
2012 Jun 06
1
problem in compililng c code using R CMD SHLIB
Hello all,
I was trying to compile a simple C program hello.c using R CMD SHLIB
hello.c.
MY R software residing in C:\Program Files\R\R-2.15.0, and also I have
downloaded the Rtools 2.15.0 and it is in C:\Rtools, MY file(hello.c) is in
E:\R_dir.
I have followed the procedures given below
1. In a new CMD.exe window I have set the path as
c:\ Rtools\bin; C:\Rtools\MinGW\bin;C:\Program
2012 Dec 07
0
R CMD SHLIB
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
cx=ax*bx
end
>From the directory in which the file is located I used the
2012 Oct 11
1
R CMD SHLIB error bad value (core2) for -mtune= switch
Hi there,
I'm having trouble to compile the R + C/C++ codes for this project from
Yahoo folks on latent factor models:
https://github.com/yahoo/Latent-Factor-Models#readme
After downloading the package from the site, I could not successfully *make*
the files.
Here is the message:
======================================================================================
sh-4.1$ make
R CMD
2010 Dec 18
1
Rcmd SHLIB error
I am getting this error message when I try to run Rcmd SHLIB myprog.c.
There appears to be a missing / between etc and i386 in the path. I
am on Windows Vista and am using R version 2.12.1 Patched (2010-12-16
r53864) and just downloaded Rtools 2.12 today. Is this a bug in R?
How can I resolve this?
C:\tmp2>Rcmd SHLIB myprog.c
cygwin warning:
MS-DOS style path detected:
2014 Jul 25
1
Multiple -g flags in R CMD SHLIB
Does anybody know why two "-g" flags appear in the call to gcc in R CMD
SHLIB
Example:
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic *-g* -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 *-g* -c c_file1.c -o
c_object1.o
Surely it need only be listed once?
Alan
[[alternative HTML version deleted]]
2001 Feb 23
1
a couple of minor points about SHLIB
Dear People,
1) When I use the R search engine to find SHLIB (the text says "You can
search for keywords, function and data names and text in help page titles.
Usage: Enter a string in the text field below and hit RETURN"),
I get "no matches for "SHLIB" have been found!"
On the other hand, when I do
>help(SHLIB)
at the R command line, the help page for SHLIB
2011 Oct 11
1
R CMD INSTALL configure.args and CC customization
One way to deal with this is to install R itself with mpicc. Then all
packages are installed with mpicc and get the required MPI libraries and
includes by default. I have done this with R-2.13.0 on an Opteron
cluster running CentOS-5 a while ago and so far it has worked out great.
I crosspost to r-sig-hpc and welcome others to comment if there are
potential downsides to this solution.
George
2010 Dec 14
1
How to specify compiler options when using R CMD SHLIB
Hi
I've built a dll using Fortran code and can call it by either R or
Fortran. Calling by the former gives me the wrong answer and the later
gives the correct answer.
>From what I've read, it looks like I should use the subroutines DBLEPR,
INTPR and REALPR to print to the R console rather than using Fortran
standard I/O and that if I use the command
R CMD SHLIB source.f that these
2011 Sep 09
1
R CMD INSTALL configure.args and CC customization
I am running into the following issue that has been previously
reported on the R-devel mailing list. The short version is that I'm
writing a package for MPI, and I'd like to change CC and SHLIB_LD to
"mpicc". Trying to change them in Makevars.in has no effect, because
the values are clobbered by /etc/R/Makeconf. Will the following
changes to Makeconf.in introduce any problems?
2001 Mar 26
1
Problems with R CMD COMPILE within Makefile (PR#885)
Dear R-developpers
This concerns a problem I posted about half a year ago on the R-help list
and to which I got some answer by Duncan Temple Lang (see below), but the
basic problem still continues. Even though I managed a workaround which is
sufficient for me Martin Maechler asked me to send a toy example of the
problem to R-bugs. So that's what I try here.
The following Makefile will not
1999 Sep 02
1
unresolved symbols in growth and repeated libraries
I am having trouble using Jim Lindsey's libraries because of unresolved
symbols. I am currently using R 0.65.0, but had this problem in earlier
releases as well. I have a RedHat 6.0 Linux on i386 and use egcs
(upgraded to that distributed with rawhide, after first failures with
the libraries):
egcs-g77-1.1.2-19
egcs-1.1.2-19
Installation of the libraries works but on loading
>
2002 Jul 24
1
loading compiled C++ code as shared library
Dear People,
Over the last few days I've been writing C++ to compile as a shared
library (previously I have always used C). Not entirely to my surprise, I
am getting errors. Specifically, when I try to load the shared library, I
get
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
"/home/faheem/research/thesis/sim/ms/ms.so":
2006 Jul 26
1
R CMD SHLIB flags
How can one specify multiple extra flags to R CMD SHLIB? The example in
R-exts section 5.5
MAKEFLAGS="CFLAGS=-O3" R CMD SHLIB *.c
works for a single flag, but when I try
MAKEFLAGS="CFLAGS=-g -O2 -Wall" R CMD SHLIB *.c
only the first flag is used and the rest seem to be ignored (version
2.3.1, Mac OS X)
-thomas
Thomas Lumley Assoc. Professor, Biostatistics