Re: [Rcpp-devel] Segfault in wrapping code in Rcpp

2024-03-02 Thread Dirk Eddelbuettel
Hi Nikhil, Don't post images. I read in a text-based reader. The mailing list software also scrubs html (I think). I would simplify. Start with the simplest Rcpp Modules setup. Then add. Check checking. Eventually on your way towards what you are doing now you may spot the error. Hope this hel

[Rcpp-devel] Segfault in wrapping code in Rcpp

2024-03-01 Thread Nikhil Garg
Hi, I am currently working on wrapping some code from a C++ library. I am using RCPP for this work. I have managed to get the wrapping code compiled but I get segfault when I try to use some of the functionality. Here is an example of how I have gone about it, though I think I am quite sure I am