similar to: trouble with R CMD SHLIB on winXP

Displaying 20 results from an estimated 20000 matches similar to: "trouble with R CMD SHLIB on winXP"

2010 Oct 04
1
source package build/installation with subdirectory-lib
hi all - i have a source package i'm writing that i'd like to be able to install with a special library that my R src files rely on. to be more precise, i have a normal R package directory structure (i.e. src/ R/ man/ DESCRIPTION NAMESPACE etc.). i also have another directory here called depPkg, and it has it's own configure file for the canonical './configure && make
2005 Dec 28
1
segmetation fault
Hey, I don;t know if anyone has come across this error before... I am running R on the terminal of my MAC OS X 10.3.4 and I have written C code and compiled it using R CMD SHLIB mycode.c There were no problems in compiling so I now have mycode.o and mycode.so. I used dyn.load("mycode.so") and again, no problems. But when I try to use the code .C("mycode",x)
2001 Feb 27
1
using fmod in C code to be loaded into R
Dear People, I wrote the following bit of C code and (along with other bits) called it mycode.c, and compiled the file into a shared library to load into R, using R CMD SHLIB mycode.c. This was Ok, but when I tried to load this into R using dyn.load("mycode.so") I got the error > dyn.load("mycode.so") Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to
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
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
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
2007 May 13
1
Strange behavior of debugger
Hi, All: I had some trouble debugging C source dynamically loaded into R , when I issued N in gdb(or insight) , the debugger, instead of moving downward step by step, jumped to strange positions (upward, downward, one step, a few steps away). To enter the debugger, I issued gdb(insight) Rgui.exe in Cygwin and add this line : asm("int $3"); to my C code. After entering R, I
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
2012 Apr 13
1
Question with R CMD SHLIB in 64 bit R
Hi, I have some C++ code that I compiled into a dll for use in 32 bit R and would like to recompile for use in 64bit R. I thought it would be as easy as going to R-2.15.0\bib\x64 and running R CMD SHLIB mfregRF.c but that doesn't do anything. It doesn't give me any error messages, but it also doesn't create a shared (so) file. I just get the command prompt back. I also tried
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
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
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
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
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
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
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: