Displaying 20 results from an estimated 4000 matches similar to: "Problem building DLL under Windows"
2013 May 24
0
Rcpp with OpenMP - Need example Makevars
Dear R experts,
recently I started developing a Rcpp package "OpenMPTest".
Within that package I want to use OpenMP, as in the following code example:
// header file
#include <omp.h>
using namespace Rcpp ;
RcppExport SEXP testOpenMP( SEXP nThreads ) ;
// cpp file
SEXP testOpenMP( SEXP nThreads ) {
BEGIN_RCPP
NumericVector numberThreads = NumericVector( nThreads );
2011 Oct 12
1
Error in Rcpp/inline (Windows XP)
Hi, everyone,
I am just trying to use Rcpp in my computer, and I would like to try a
simple example from website, but R keeps reporting me error. I am using
Windows XP, and has installed Rtools and GSI.
Here is the response:
> src = '
+ Rcpp::NumericVector xa(a);
+ Rcpp::NumericVector xb(b);
+ int n_xa = xa.size();
+ int n_xb = xb.size();
+
+ Rcpp::NumericVector xab(n_xa + n_xb - 1);
2000 Oct 22
1
How to pass
HI!
Have somebody an expample how the syntax is for passing the path of
include files to:
"If a package needs to specify additional directories for search-
ing header les (`-I' options) or additional libraries for linking (`-l'
and `-L' options), it
should do this by setting the variables PKG_CPPFLAGS and PKG_LIBS in
`src/Makevars'." But no examples. :-(
src/Makevars.
2006 Jan 30
3
RMySQL install
I am having trouble installing RMySQL on a clean install of Fedora Core 4 64
bit on a dual dual core machine (that is, two dual core processors). Seems
like the LD_LIBRARY_PATH is incorrect, but I don't seem to have it quite
right yet.
There are a few mentions of this problem in google, but thus far none of the
"fixes" and fixed my problem. I've tried defining the
2000 Oct 23
1
How To compile RMySQL on Windows?
Hallo!
Thanks for the answers that I received.
I had downloaded the last distribution of RMySQL from
/R/CRAN/src/contrib/Devel..
Its the first package that I am trying to compile under Windows.
>From the Compiler I am getting the following error message.
In file included from RMySQL.c:1:
RMySQL.h:24: mysql.h: No such file or directory
RMySQL.h:25: mysql_com.h: No such file or directory
2007 Jan 26
1
Makevars PKG_LIBS ignored by SHLIB (PR#9473)
Full_Name: Rick Sayre
Version: 2.4.0
OS: Windows
Submission from: (NULL) (138.72.27.164)
PKG_LIBS works fine on *nix
on windows, it seems to be ignored by the "SHLIB" script
so, R CMD SHLIB blah
properly uses PKG_CPPFLAGS and PKG_CFLAGS from Makevars, but PKG_LIBS is
ignored
2009 Jan 27
1
Return values from .Call and garbage collection
Hi all,
I'm posting this here as it discusses an issue with an external C library. If it would be better in R-Help, then I'll repost.
I'm using an external library which I've written, which provides a large set of data (>500MB in a highly condensed format) and the tools to return values from the data. The functionality has been tested call by call and using valgrind and works
2013 Nov 03
1
How to make an R package that uses Boost.Thread, qualified to be published on CRAN or shared by the most
Hi,
Recently, I made an R package that used the C++ library Boost.Thread (http://www.boost.org/doc/libs/1_54_0/doc/html/thread.html) for multithreading. Previously, I have posted a question at stackoverflow (http://stackoverflow.com/questions/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http), and I also asked at rcpp-devel
2011 May 20
2
Calling Rscript from Makevars
Hi,
I am trying to package some code to use with R and wanted to call
Rscript from within the Makevars file (I am trying to automate the
setting of the location of a third party library depending on what is
available / the system the package is being installed on).
If I just have a simple Makevars containing
PKG_LIBS= -lnag_nag -L/fserver/nagprod/FL22/fll6a22df/lib
the package is built
2004 Sep 09
3
Dyn.load of sharing object with GSL library
Following the recommendation of Prof. Ripley, I have created the Makevars
file with the line:
PKG_LIBS="-L/usr/lib/libm -lm -L/usr/local/lib/libgsl -lgsl -L/usr/local/lib
/libgslcblas -lgslcblas"
in the working directory.
Now I have the code file Example3.c which computes the Bessel function value
(the example is taken from the GSL reference book).
I am running:
R CMD SHLIB Example3.c
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
When I install an R package with cpp codes such as rrcov via CRAN (under
R 3.1.1, using no Makevars file and under Ubuntu 14.04 using GCC 4.8),
the cpp code is compiled with the -o3 flag (in fact, looking at the
Makeconf file this seem to again be the default since R 3.1.1) But when
I install my own package via CRAN it is compiled with the -o2 flag.
My questions are what is causing my
2006 May 13
1
Error Compiling RMySQL in Fedora Core 5 86x64
in download and automatic install the RMySQL, R show the error (look
under session attach. MySQL is install and operational.
Juan Santiago Ramseyer.
> install.packages('RMySQL')
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
tentando a URL
'http://cran.br.r-project.org/src/contrib/RMySQL_0.5-7.tar.gz'
Content type
2013 Jun 09
1
Dyn.load of sharing object with GSL library
Dear R-list,
I want to use shared library of gsl in R(2.15.1) on unix .I have a makefile such as
CC = gcc
CFLAGS = -fPIC -O2
PKG_LIBS -lgsl -lgslcblas -lm -lpthread
?
OBJS_SPB = calc_spb.o k.o dk.o ddk.o
?
?
calc_spb.so : $(OBJS_SPB)
?
????? $(CC) -shared -o calc_spb.so $(LIBS) $(OBJS_SPB)
?
clean :
????? rm -f ../*.o *.o
?
clean.so:
????? rm -f *.so
?
I use R CMD SHLIB calc_spb.c in terminal
2009 May 25
2
cairoDevice.dll error, but it exists..?
Hello, running windows vista, R2.9. Installed the following libraries:
(*latticist*, *playwith* and *Cairo*)
Wanted then to run, to evaluate the visualization features:
>data(iris)
>library(latticist)
>latticist(iris)
However, i tested my desktop and laptop and get the following error
after typing latticist(iris):
latticist(iris)
Loading required package: playwith
Loading
2009 Jun 08
1
iconv.dll needed in addition to Riconv.dll for package XML to load (PR#13747)
Full_Name: Osiander Meixner
Version: 2.9.0 (2009-04-17)
OS: Windows Vista Enterprise, 32bit, SP1
Submission from: (NULL) (15.195.185.82)
package XML_2.5-1
>library(XML) throws an error window saying:
"
RGui: RGui.exe - Unable to Locate Component
This application has failed to start becuase iconv.dll was not found.
Re-installing the application may fix this problem.
"
RGui then
2009 Mar 31
3
installing RMySQL (PR#13633)
Full_Name: Ankhee Dutta
Version: 2.3
OS: LINUX
Submission from: (NULL) (202.141.12.97)
I have a linux system of Mandriva-2007 with R version 2.3.0 and MySQL with
5.0.0. I have also got DBI-R database interface version-0.1-11 installed on
my Linux system.While installing RMySQL package version 0.5-11 i am facing
problem .
while installation the error report which is coming is as follows:
2000 Feb 08
1
0.99
Congrats on the new release. The new package management tools are
great!
A couple of quick comments:
1) it might be nice to add an optional "Autoloads:" field to the
description (the package does not depend on these other packages, but
will autoload them if certain functions are called).
2) on page 3 of the R-exts document, it says to set PKG_* flags in
'Makeconf'; I think
2001 Jul 23
2
Installing RSPython with R 1.3.0
To get RSPython installed on my debian test box, I had to make a couple
of changes not listed in
ftp://www.omegahat.org/pub/Omega/RSPython/FAQ.html
1) I had to change $R_HOME/src/modules/X11 :
$(R_X11_la): $(R_X11_la_OBJECTS) $(R_X11_la_DEPENDENCIES)
$(SHLIB_LINK) -o $@ $(R_X11_la_LDFLAGS) $(R_X11_la_OBJECTS)
$(R_X11_la_LIBADD) $(LIBS)
to
$(R_X11_la): $(R_X11_la_OBJECTS)
2005 Oct 05
1
Problems with autoconf example from r-ext.
Dear R-developers,
I am trying to reproduce the autoconf.ac example from R-ext and fail.
My autoconf file looks like this
[autoconf.ac]
# original by Friedrich Leisch, much changed by BDR
AC_INIT([SBMLodeSolveR])
dnl Select an optional include path, from a configure option
dnl or from an environment variable.
AC_ARG_WITH([sbmlode-include],
2009 Mar 30
1
(no subject)
Hi, All
I have a linux system of Mandriva-2007 with R version 2.3.0 and MySQL with
5.0.0. I have also got DBI-R database interface version-0.1-11 installed on
my Linux system.While installing RMySQL package version 0.5-11 but facing
the problem mentioned below .
* Installing *source* package 'RMySQL' ...
creating cache ./config.cache
checking how to run the C preprocessor... cc -E