Displaying 20 results from an estimated 4000 matches similar to: "Compiling with Microsoft Visual C++"
2003 Apr 17
1
C function and Windows XP
Hi dear R developer, we are trying to build DLL files using Microsoft Visua=
l C++. As stated in readme.packages we have to build first the import libra=
ry Rdll.lib with the command: lib(def:R.exp/out:Rdll.lib. However, this com=
mand gives 2155 errors due to unresolved external symbols (ATTRIB to zlibVe=
rsion) in R.exp.Could anybody tell me if something is missing in the comman=
d line or
2003 Apr 10
6
Transforming matrix
hi everybody,
anyone knows how we can transform a binary matrix with TRUE and FALSE to 0 and 1 without looping?
Thx
---------------------------------
[[alternate HTML version deleted]]
2007 Nov 09
1
Building Rdll.lib with Visual C++
>From the R-2.6.0/doc/README.packages it says:
Using Visual C++
================
You may if you prefer use Visual C++ to make the DLLs (unless they use
Fortran source!). The notes here were tested with VC++6.
First build the import library Rdll.lib by
make R.exp
...
In the installation (R-2.6.0-win32.exe) there is no Makefile with an
R.exp target that I could find and I get
2006 Oct 20
1
R.lib for MS Visual C++
Hello,
I'm trying to compile a library in MS Visual C++ using R.dll.
For that, I need R.lib for linking.
Where can I get it?
"Readme.packages" for R says: "First build the import library R.lib by lib
/def:R.exp /out:Rdll.lib"
But for this, I need R.exp, that is also not provided with R installation
(Lib.exe output: LIB : fatal error LNK1104: cannot open file
2004 May 07
1
Error compiling ROracle on Windows 2000
Hello,
I am trying to compile ROracle _0.5-4 under R 1.9.0 without much success. I am running Windows 2000 SP4, Visual C++ 6.0 SP6, and Oracle client 9.2.0.1.0. I was able to run the pre-compiled version of ROracle_0.5-2 under R 1.7.1, but does not work on R 1.8.1 or R 1.9.0. Here is the output from nmake:
C:\Program Files\R\rw1090\library\ROracle\src>nmake
Microsoft (R) Program
2004 May 28
1
About creating an import library
Hi all,
First of all, I found R.exp. Thanks. The following is a paragraph I
copied from Venables and Ripley’s book “S programming” on Page242.
If the code calls entry points in the R engine, create an import library
from the file R.exp in the source-package distribution by
lib /def: R.exp /machine: ix386 /out: Rdll.lib
and add
Rdll.lib
to the link command or add it to the libraries to be used
2012 Sep 09
0
Different behavior of the "showArgs" example (R extension manual) between gcc and Visual C++ compiled code
Hi,
I am trying to implement on a Win7 box the showArgs example of section 5.10.2 "Calling .External" of the R extension manual. I am using interchangeably gcc (RTools) and Visual C++ (via Makefile.win) to build a package. I get a couple of runtime oddities when the dll compiled with Visual C++. I'd value comments, observations and tips from interested readers. I tried my best to
2010 Oct 19
2
Creating a Windows import lib from R.dll (x64)?
Hello,
The procedure for creating an import library (Rdll.lib) that is documented
in gnuwin32/README.packages works fine using the i386 architecture, but
it doesn't seem to work under x64.
Specifically, the procedure is:
pexports R.dll > R.exp
lib /def:R.exp /out:Rdll.lib /machine:X86 R.dll
There are two issues under x64:
1. Older version of pexports crash when applied to an x64 R.dll.
2007 Mar 29
1
Using functions in LAPACK in a C program
Hi,
I wonder where I can find an example of using a function in LAPACK library in a user's own C code. I wrote a C program which will be compiled and linked to produce a DLL file and then loaded into R. I hope to use a function from LAPACK library, for example, dgesdd, in the program. Following R manual, I call the function by F77_CALL(dgesdd) in the program. The program can be compiled
2003 May 05
1
R-1.7.0: Rproxy.dll loadlibrary/freelibrary error (PR#2914)
Full_Name: Venkatesh Mysore
Version: R-1.7.0
OS: WindowsXP
Submission from: (NULL) (216.165.110.10)
While accessing Rproxy.dll repeatedly (using the code from the (D)COM example in
the R website) causes a failure in the 24th iteration. R-1.6.2 does NOT give
this error. This seems to be a memory management error, that might be linked to
the huge leakage difference between R-1.7.0 and R-1.6.2
2003 Oct 27
3
(PR#4806)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C39C9F.B5DABBD0
Content-Type: text/plain;
charset="iso-8859-1"
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing
2010 Dec 02
1
Strange problems with compiling dll
Dear sir\madam!
I'm trying to speed up my R code by writing quite simple dll's in C. But I
faced some problems, and I cannot determine their source.
#include <Rinternals.h>
SEXP mycombin(SEXP N, SEXP k){
int i, *j, *l, c;
j = INTEGER(k);l = INTEGER(N);
c = 1;
if(j[0] > 0 && j[0] < l[0]){
if(j[0] <= l[0] - j[0]){
for(i =
2008 Apr 29
1
Error in building ROracle in Windows with R 2.6.2 and Oracle 10g.
Hi,
I am new to R. I need to communicate with Oracle from R program in windows
xp. So I am planning to use ROracle. I downloaded the ROracle src from the
site below:
http://cran.r-project.org/web/packages/ROracle/index.html
I am using R version 2.6.2 and Oracle 10g. I followed the instructions to
build ROracle. When I try to compile the source src/Makefile.win I get the
following error:
2010 Dec 03
1
Strange problems with compiling dll
Dear sir\madam!
I'm trying to speed up my R code by writing quite simple dll's in C. But I
faced some problems, and I cannot determine their source.
#include <Rinternals.h>
SEXP mycombin(SEXP N, SEXP k){
int i, *j, *l, c;
j = INTEGER(k);l = INTEGER(N);
c = 1;
if(j[0] > 0 && j[0] < l[0]){
if(j[0] <= l[0] - j[0]){
2014 Jul 19
1
patch about mingwbuild 4.9.1
recently I used gcc 4.9.1 (http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/)on windows to build R,but failed when link R.dll ,it report linker status 5.
after some digging, I found when use gcc 4.9.1 64 bit on windows there are lots of .refptr.*(* is r function name) in R.def, which lead build fail.so I add a simple path to
2003 Apr 10
2
New problem
Hi all, and thx a lot for your answers,
in fact i know that R deals with logical numbers 0 and 1 the same way like TRUE and FALSE but my problem is in fact with C language.
I have done an interface with C and my first problem was with float variables, but this warning doesn't appear everytime and really i don't know the problem with R:
"Warning message:
DLL attempted to change
2006 Jul 19
1
ASCII dump from an REXP (JRI)
Hi Simon,
Thanks so much for your help. Your advice has been taken to heart. I now
pass in blocks of 100,000 records, and it does 100,000 predictions in
seconds and returns a logical vector with the predictions to an int array.
It works like a charm!
I want to reference what we were talking about earlier. Let?s say we
evaluate an R expression. Is there a way to just print, verbatim, what R
2008 Jan 27
0
[LLVMdev] Better llvm-ld support for frameworks on Mac OS X
I would like to be able to compile and link the following two program
into native executables. These are a vastly reduced testcase, so
ignore for a moment the fact that the native compiler driver might
have default -L/-F search paths and -lSystem by default.
$ cat test1.c
extern char *zlibVersion(void);
extern int puts(char *);
int main(int argc, char *argv[]) {
puts(zlibVersion());
2002 Jan 07
0
rsync-2.5.1 / zlib patches
The following zlib files need patches in order to compile using Compaq C
on OpenVMS. These patches should also be needed on a Tru64 or LINUX on
ALPHA using Compaq C. These should work on any ANSI compliant compiler.
Operating System: OpenVMS ALPHA V7.3
Compiler: Compaq C T6.5
Compiler switches: /WARN=ENABLE=(LEVEL4, QUESTCODE)
The module adler32.c is testing the unsigned value len to see if
1999 Aug 30
1
rexp and rweibull
In splus rexp() and rweibull() are related:
> set.seed(153)
> rexp(1)
[1] 0.0493267
> set.seed(153)
> rweibull(1, shape=1)
[1] 0.0493267
(you can also try shape =2, then rweibull = sqrt(rexp) )
However, in rw0.64.1 (on Win NT) they are different
> .Random.seed <- 1:4
> rexp(1)
[1] 1.412030
> .Random.seed <- 1:4
> rweibull(1, shape=1)
[1] 2.054032
May be rweibull