Hi ! Great thanks !
In the mean time, what do you suggest I can do if I want to work with Rcpp ? Or can something be done to the Makevars or is this problem running deeper ? Have a good day ! Guillaume > Le 2 nov. 2015 à 13:58, Kevin Ushey <kevinus...@gmail.com> a écrit : > > Hi Guillaume, > > Compiling with the Makevars you provided, I see a number of warnings > related to sign conversion and loss of integer precision (due to the > use of `-Wconversion` in the Makevars). > > I'll add an issue on the GitHub issue tracker just so we don't lose sight of > it. > > Thanks, > Kevin > > On Mon, Nov 2, 2015 at 10:48 AM, Guillaume Blanchet > <gblanchet.l...@gmail.com> wrote: >> Hi ! >> >> I apologie in advance if this question has already been answered but I have >> yet to find a solution to my problem. >> >> I recently started to learn Rcpp using the book « Seamless R and C++ >> Integration with Rcpp » by Dirk Eddelbuettel. >> >> Using the Fibonacci C code from the book, I tried to reproduce the example >> to get a feeling of how to work with Rcpp. More precisely, I wrote the >> following C code in a file that I called « fibonacci.cpp ». >> >> #include <Rcpp.h> >> using namespace Rcpp; >> >> //[[Rcpp::export]] >> int fibonacci(const int x) { >> if(x < 2){ >> return(x); >> }else{ >> return fibonacci(x-1)+fibonacci(x-2); >> } >> } >> >> Following, I called this file using the following command line: >> >> sourceCpp("fibonacci.cpp") >> >> What I get in return is a series of 80 warnings. Although, these warning may >> be helpful to answer this question, to keep this message concise I will not >> attached them here. However, if you feel they maybe helpful, let me know and >> I will send them along. >> >> Note that I am currently working on a Macbook Pro with the new OS (El >> Capitan). Following the advice given on the CRAN, I organized the Makevar >> file using clang as follow: >> >> CC=clang >> CXX=clang++ >> CFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion >> CXXFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion >> FLIBS=-lgfortran >> >> Any reasons, why I get so many warnings ? >> >> Thanks in advance for your answer ! >> >> Have a good day ! >> >> Guillaume >> >> >> >> _______________________________________________ >> Rcpp-devel mailing list >> Rcpp-devel@lists.r-forge.r-project.org >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel