Re: [Rcpp-devel] Rcpp module errors with Rcpp binary installation

2014-05-01 Thread Kevin Ushey
Hi Ariful (sorry, I think I addressed you by your last name earlier), clang does do things differently than gcc, so even though std::function is a C++11 feature, I guess it 'leaks out' when compiling even with -std=c++11 not specified. gcc doesn't have this problem. Unfortunately, there are ABI i

Re: [Rcpp-devel] Rcpp module errors with Rcpp binary installation

2014-05-01 Thread Ariful Azad
Thanks Kevin for the prompt reply. As a quick fix to the Bioconductor problem (2nd issue), I used Rcpp::function in the Rcpp module (replacing using namespace std will be more work at this point). I will have to wait till Saturday to see the build result. I am surprised that they don't have the err

Re: [Rcpp-devel] Rcpp module errors with Rcpp binary installation

2014-05-01 Thread Kevin Ushey
Actually, to confirm: this is exactly what the build report tells you (with a lot of macro expansion in the support of Rcpp::function)... clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Framewor

Re: [Rcpp-devel] Rcpp module errors with Rcpp binary installation

2014-05-01 Thread Kevin Ushey
Hi Azad, Your first issue is something separate, probably due to clashing compiler toolchains between compiled versions of R / packages. If you want to dive into that further you'll need to give us some more information about your compiler setup. The second issue, with flowMatch, I believe this i

Re: [Rcpp-devel] Rcpp Module Errors

2011-06-22 Thread Andrew Redd
Jonas, Thank you. This exactly solved the problem. I'm not sure if this `Module('yada','test')$bla()` causing a segmentation fault or not is a bug or user error. I'll leave that for Dirk and Romain to figure out. For now I'll chalk it up to a user error. Thanks for figuring this out. -Andrew

Re: [Rcpp-devel] Rcpp Module Errors

2011-06-21 Thread Jonas Rauch
I had the same problem before I realized that when a Module is loaded as part of a package (instead of manually loading the shared lib) you don't need the whole > Module('yada','test')$ ... just try >bla() The exposed classes and functions are automatically made available in the namespace of the p

Re: [Rcpp-devel] Rcpp Module Errors

2011-06-21 Thread Dirk Eddelbuettel
On 21 June 2011 at 16:51, Andrew Redd wrote: | I apologize if this has been covered.  I've looked and see a couple of post | relating to this issue, but I'm not sure if it was ever solved. The example | modules appear to not work, at least for me.  On a related note I can't get my | modules to run