Re: [R] A good way to debug a c++ library embedded to an R code

2015-02-02 Thread Qiang Kou
If you are familiar with GDB, you can just start R by R -d gdb. Dirk gave a good example on SO, please check the link below: http://stackoverflow.com/questions/11345537/debugging-line-by-line-of-rcpp-generated-dll-under-windows Best, KK On Mon, Feb 2, 2015 at 2:00 PM, Charles Novaes de

Re: [R] A good way to debug a c++ library embedded to an R code

2015-02-02 Thread Pierrick Bruneau
There's also a section about this in Writing R extensions: http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Debugging-compiled-code Pierrick On Mon, Feb 2, 2015 at 10:42 PM, Qiang Kou q...@umail.iu.edu wrote: If you are familiar with GDB, you can just start R by R -d gdb. Dirk gave

[R] A good way to debug a c++ library embedded to an R code

2015-02-02 Thread Charles Novaes de Santana
Dear all, I am using R CMD SHLIB to compile a c++ code into a library (.so) and dyn.load to load this library into a R code. I am facing some problems in the c++ part that I can not figure out how to solve. Do you recomend any good way to debug this R + C++ program? If I was programming only in