similar to: linking to external C++ library

Displaying 20 results from an estimated 2000 matches similar to: "linking to external C++ library"

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
2005 Feb 20
2
minus I and minus L flags
I have been RTFM/doc/www, but I'm still lost. How does one tell R CMD INSTALL and R CMD check (both) that libraries are installed in non-usual places and so -I/APPS/include (or whatever) is necessary in CPPFLAGS and -L/APPS/lib (similarly) is necessary in LDFLAGS? I know I can hardwire them in pkg/src/Makevars, but this requires hand editing of that file by each installer (yuck!) rgentlem
2005 Feb 20
2
minus I and minus L flags
I have been RTFM/doc/www, but I'm still lost. How does one tell R CMD INSTALL and R CMD check (both) that libraries are installed in non-usual places and so -I/APPS/include (or whatever) is necessary in CPPFLAGS and -L/APPS/lib (similarly) is necessary in LDFLAGS? I know I can hardwire them in pkg/src/Makevars, but this requires hand editing of that file by each installer (yuck!) rgentlem
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 );
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 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.
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
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
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:
2011 Apr 06
2
Cannot install pakcage RMySQL
Hello All, I have a technical difficulty installing RMySQL. I am running openSUSE11.1 and R 2.12 I have installed MySQL from the website. and following installation , as root This is the part where trouble begin, ...... checking mysql.h usability... no checking mysql.h presence... no checking for mysql.h... no checking for mysql_init in -lmysqlclient... no checking for mysql_init in
2006 Jul 06
1
RMySQL Suse 10.0 installing problems
Thanks again everyone, I have a problem trying to install RMySQL on Suse 10.0. I have used both the install.packages() and the 'R CMD INSTALL RMySQL..." neither worked. I get the error message telling me that it cannot find mysql. So I have set the flags using export PKG_CPPFLAGS="-I</usr/bin/>" export PKG_LIBS="-L</usr/lib/mysql>" After that I run R
2005 May 03
3
RMySQL installation: libz missing
Hi I run suse linux 9.1 and I installed MySQL server, client, devel, bench. DBI is installed, when I try to install RMySQL I get an error saying, that libz is missing. (paths to libs were set:export PKG_CPPFLAGS="-I/usr/include/mysql/" export PKG_LIBS="-L/usr/lib/mysql/ -lmysqlclient") so my question: where do I get the libz files (are these mysql files? if yes, why were
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
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
2016 Oct 16
3
compile c++ code in an R package without -g
Hello, I'm writing an R package that is mainly written in C++. By default, R CMD INSTALL creates C/C++ flags as follows: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g However, my package is fairly large. With debug info compiled into the library, the generated .so file is over 200MB. Without debug info, it's about 30MB. I hope
2017 Dec 03
5
Rcpp, dyn.load and C++ problems
Hi, I have written a small C++ function and compile it. However in R I can't see the function I have defined in C++. I have read some web-pages about Rcpp and C++ but it is a bit confusion for me. Anyway, This is the C++-code: #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] List compute_values_cpp(int totalPoints = 1e5, double angle_increment = 0.01, int radius =
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
2008 Nov 20
3
Turning off compiler optimization
Hi. I am writing some code in C that I would like to link into R. My Makevars file is: PKG_CPPFLAGS=-I/usr/local/include PKG_LIBS=-L/usr/local/lib -lgsl PKG_CFLAGS = -Wall -O0 -g -p -pg The source file is core.c,. and I am compiling using R CMD SHLIB core.c The output is gcc -arch x86_64 -O3 -g -p -std=gnu99 -I/Library/Frameworks/ R.framework/Resources/include
2020 Oct 08
1
Installing package fails at "testing if installed package can be loaded from temporary location"
Dirk, thank you a thousand times. Indeed, src/Makevars was wrong. I modified Makevars so that now looks like the below and the package now compiled and linked properly. CXX_STD = CXX11 PKG_LIBS += $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()") PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include
2008 May 12
1
problem configuring package udunits
Hi R Users, I am new to running R on a Linux platform (I'm used to Windows) - I'm running R 2.7.0 on Ubuntu 7.10 (Gutsy) as sudo (without Emacs). My architecture is Pentium D (x86_64). I am having problems successsfully configuring the downloaded package 'udunits'. When I execute > install.packages("udunits", lib="/usr/local/lib/R/library") I get the