Displaying 20 results from an estimated 10000 matches similar to: "Building a dll for windows"
2004 Oct 17
3
question about Rcmd SHLIB
Dear R-people:
I tried to create a shared library in Windows XP. However I got error
messages which attached below:
C:\lasso>Rcmd SHLIB all.f cox.f
gcc all.o libR makeMakedeps all.dll -o all
gcc.exe: libR: No such file or directory
gcc.exe: makeMakedeps: No such file or directory
make: *** [all] Error 1
I have created shard libraries successfully before. Also for the same
fortran files:
2005 Apr 27
1
dyn.load(), DLL, Fortran, TLNise software
Dear all,
I would like to call TLNise ("Two-Level Normal indipendent sampling estimation")
software within R.
This software estimates a hierarchical model and it can be download from
Philip Everson's website at
"http://www.swarthmore.edu/NatSci/peverso1/TLNise/tlnise.htm".
The TLNise software consists of:
1) a Fortran source code (tlnisemv1.f) and
2) a Splus code
2003 May 23
1
Fortran DLL
Dear R-users,
After the reading of "Writing R extensions", "readme.packages", "Using
external compilers with
R", ..., I have tried to create a DLL for my Fortran file using the command:
g77 --shared -o robeth.dll robeth.f
and failed with several messages as :
c:\temp/ccU8N5fb.o: ... undefined reference to 'realpr_'
c:\temp/ccU8N5fb.o: ... undefined
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help,
I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4:
C:\TEMP>Rcmd SHLIB tryf.o
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
C:\TEMP>Rcmd SHLIB tryf.f
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
I
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help,
I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4:
C:\TEMP>Rcmd SHLIB tryf.o
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
C:\TEMP>Rcmd SHLIB tryf.f
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
I
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
I've been trying to create/load/call a dll from R-1.8.1 on Windows without
much success. I've been able to at least load the library on FreeBSD
(1.8.1). I've been able to perform this before using DLL that weren't
created using RCMD SHLIB, but simply compiling under MS DevStudio.
C:\optflikam>rcmd shlib --output=optflikam.dll as47.f as197.f flikam.c
g77 -O2 -Wall -c as47.f
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
I've been trying to create/load/call a dll from R-1.8.1 on Windows without
much success. I've been able to at least load the library on FreeBSD
(1.8.1). I've been able to perform this before using DLL that weren't
created using RCMD SHLIB, but simply compiling under MS DevStudio.
C:\optflikam>rcmd shlib --output=optflikam.dll as47.f as197.f flikam.c
g77 -O2 -Wall -c as47.f
2004 Jun 10
1
Everything was ok, but I failed to get .o file in g77
Hi folks,
I tried to compile a FORTRAN routine using the command “g77 –o2 –c
all.f”, it seems everything is fine, there is no error message at all,
but finally I can not get the file all.o. Therefore, I can not move on
to the next step using “g77 –shared –c all.dll all.o” to get the file
all.dll. The following is what happened on my screen:
> g77 –o2 –c all.f
>
Could anyone help me? Thanks
2002 May 30
1
problem of compile fortran program
I want to call dll from R but encounter problem in compiling the fortran
program.
First I try "Rcmd shlib prog.f", it failed and warning:
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'prog.o', needed by `prog.a'. stop.
Then I try to compile it by absoft fortran compiler, it works and produces
prog.dll.
But when this routine is called in R, it
2003 Sep 17
3
Building and loading a DLL on Windows NT
I am trying to build a simple dll with Rcmd SHLIB to link into R. The
results of the build are below. From my limited knowledge of building DLLs,
it looks like it worked (I didn't get any errors).
F:\R\dlls> Rcmd SHLIB add.C
making add.d from add.C
g++ -IC:/PROGRA~1/R/src/include -Wall -O2 -c add.C -o add.o
ar cr add.a *.o
ranlib add.a
g++ --shared -s -o add.dll add.def add.a
2010 Mar 24
1
Fortran DLLs and R
Hi All,
I'm writing R code that would benefit from doing certain tasks using
compiled blocks of code, specifically Fortran subroutines of my own
(already written, debugged in both Fortran77 and Fortran90).
I am currently working on a Windows machine using Lahey and/or MinGW(g77)
compilers.
It is possible to dynamically load Fortran DLLs into R as evidenced from
the several documents
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
? Thu, 31 Aug 2023 14:01:54 +0000
Christophe Bousquet <chr_bousquet at protonmail.com> ?????:
> So when I run the commands, I get this output. I honestly have no
> clue whether this can be considered as something useful or not :-/
>
> ```
> > tools:::.shlib_internal(c('-n', 'hello.c'))
> make cmd is
> make -f
2003 Nov 16
2
Error when calling a dll procedure
Dear experts,
I am a beginner in R and try to build dlls (Win XP, MinGW, R 1.7.1).
So far, I have managed to create and to use some dlls with C code which
worked properly.
Now I am stuck with a dll containing C++ code.
I have included some part of the source code (of an implementation of a
function to find all primes below a given numeric value -> its just an exercises
to get familar with
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
> This can be considered good news. You have just successfully performed
> the job that is normally done by R CMD SHLIB when installing source
> packages or running inline C++ code. The environment variables, at
> least inside your running R session, are completely fine.
>
> Now we need to find out why R CMD SHLIB itself fails without producing
> any output. Do you get any
2002 Aug 04
3
Fortran DLLs
Hello everyone,
I'm using R 1.5.1 on Windows.
I chose the option 'Install Source Files' when installing R.
The code below shows my use of the command SHLIB and the error I get.
C:\R\rw1051\bin>Rcmd SHLIB C:\Stage 9 (Phase 2)\cir3int.f
'perl' is not recognized as an internal or external command,
operable program or batch file.
I'm assuming I'm missing some perl
2004 Jun 11
2
question about Rcmd SHLIB
Dear R People:
I'm trying to use the Rcmd SHLIB to produce a dll.
Rcmd SHLIB -o test2.dll test2.f
make[1]: *** [libR.a] Error 255
make: *** [libR] Error 2
Where do I go to find out about the "make" errors, please?
I suspect that I might be missing something. I have the tools for creating
new packages, but
maybe I left out something.
This is for R version 1.9.0 on Windows.
2010 Mar 11
2
Problem with rcmd SHLIB
Hi all,
I am trying to call a C function from R (version 2.10.1) on a windows machine.
The C code is in a .c file, I have pasted the code below although I'm very confident that it does not contain any errors (it is not my code), but also, the problem that I have occurs with every .c file that I have tried this with.
I have installed Rtools and included:
C:\Rtools\bin; C:\Rtools\perl;
2002 Aug 24
3
link my own C library using Rcmd SHLIB
Hi All,
I have already used gcc to creat a library, for example, it is called
"test.a", which includes many
c objects.
How to link my main "a.c" function to this library when I used Rcmd SHLIB
to complier my main c program?
I tried "Rcmd SHLIB a.c test.a". It does not work this way. Does anyone
have idea about this?
Thanks,
Xiaoping
2002 Sep 30
2
"Rcmd SHLIB" does not work
R-users
E-mail: r-help at stat.math.ethz.ch
Hi!
I would like to produce DLL files to be linked to
R objects on Windows98SE. The source files are
written in Fortran77.
I input the command below on R console.
Rcmd SHLIB aaa.f
The result is:
Error: syntax error
Does this mean that "Rcmd SHLIB aaa.f" contains
symtax error, or "aaa.f" contains it?
Or do I need to do
2003 May 20
1
building a Win32 DLL with R objects?
I've been attemping to create a test dll that contains R objects (actually I
simply copied the code from the "Writing R extensions") and got it to build
the dll using rcmd shlib main.c (okay, it's simple, but effective). Here's
the info so far:
this is the contents of the main.c file (not there's no WinMain()). Do we
put it in or does the script do it when we compile?