similar to: Question with R CMD SHLIB in 64 bit R

Displaying 20 results from an estimated 7000 matches similar to: "Question with R CMD SHLIB in 64 bit R"

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
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
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
2009 Oct 20
1
Changing options in R CMD SHLIB
Dear, When trying to use directive OpenMP in my code, I observed that the directive ones were being considered as commentaries. Compiling with command R CMD SHLIB xxx.f95 - fopenmp and calling the function in the R verified that threads was not being considered. I was to observe the options of the compiler R CMD SHLIB --help Usage: R CMD SHLIB [options] files | linker options Build a shared
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
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
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
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).
2010 Oct 08
1
R CMD SHLIB changes function name when compiling
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: #include<R.h> #include<Rdefines.h> #include<Rinternals.h> void summariseMCMC(SEXP data) { PROTECT(data=AS_NUMERIC(data)); UNPROTECT(1); } Then
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
2006 Feb 28
1
trouble with R CMD SHLIB on winXP
Hi, Has anyone come across this difficulty using R-2.2.1 in Windows XP: when I try to run R CMD SHLIB mycode.c I get the response: "The system cannot execute the specified program." I've tried installing all windows updates, reinstalling R and putting "R-2.2.1\bin" at the head of my path. Googling that error message leads to lots of stuff about *.manifest files. The
2004 Sep 14
2
R CMD SHLIB setup problem...
All, When I try and compile a shared library (on WinXP) I get the following error: E:\data\proj>R CMD SHLIB toy_dll.c Makevars:1: *** missing separator. Stop. Has someone else had this error and fixed it? This code compiles and works fine on Linux (fedora core 2). Everything was working fine under R1.8.1 but I've broken something when I upgraded to R1.9.1. So I am assuming
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
2004 Sep 28
2
specifying exports for R CMD SHLIB
Hi, How can I specify which functions should be exported when I build a shared library with 'R CMD SHLIB foo.c'?? I tried putting a file named foo.def in the same directory with the line 'EXPORTS' and the names of the functions to be exported, but the file is deleted in the build process. Any help is appreciated, Martin Keller-Ressel
2008 Oct 18
1
R CMD SHLIB: file not recognized: File format not recognized
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 -std=gnu99 -shared -o add.so add.o -L/usr/lib/R/lib -lR add.o: file not recognized:
2008 Feb 13
1
R CMD SHLIB help
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 shared file (.so file) produced at the end. C:\cygwin\home\Deepak>R CMD SHLIB ssa.h
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]]
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
2006 Aug 01
2
A problem with R CMD SHLIB
Hi, I followed the example in "Writing R Extensions" to create a shared object in Windows, using the command R CMD SHLIB X.cc X_main.cc This was encountered: ../src/gnuwin32/MkRules:155: warning: overriding commands for target '.c.d' ../src/gnuwin32/MkRules:143: warning: ignoring old commands for target '.c.d' ../src/gnuwin32/MkRules:171: warning: overriding commands
2007 Jul 20
3
R CMD SHLIB problem [make: *** No rule to make target ]
Hy all, I apologize for my ingenuity in regard to interfaces in R, but I do need it for my work. In that respect I took a simple and small example from the net (the "hello world", one) to interface R with C. I have a Windows XP OS using R.2.5.0 and in that regard I have installed the Perl and RTools files to my PC. I also wrote a proper path file, as suggested. The C program is: