[R-pkg-devel] Compiler optimization flags with R package

2017-06-17 Thread Guillaume Chapron
Hello, I am trying to debug some C code that is run only through a R package. I debug with lldb but I always get a message telling that the package "was compiled with optimization - stepping may behave oddly; variables may not be available.” And in fact, I cannot evaluate all variables and

Re: [R-pkg-devel] Linking external libraries in non-standard locations

2017-06-17 Thread Dirk Eddelbuettel
On 17 June 2017 at 17:30, Iñaki Úcar wrote: | Hi all, | | After googling around for a while, I found that this is a common | problem, but still it is not clear to me how I should handle this. | | I have a package A, with C++ code via Rcpp, that needs an external C++ | library libB. I have a

[R-pkg-devel] Linking external libraries in non-standard locations

2017-06-17 Thread Iñaki Úcar
Hi all, After googling around for a while, I found that this is a common problem, but still it is not clear to me how I should handle this. I have a package A, with C++ code via Rcpp, that needs an external C++ library libB. I have a configure script that sets PKG_CPPFLAGS=-I/path/to/B/include