Re: [Bioc-devel] Register native routines

2016-03-15 Thread Aaron Taudt
Yes, I could reproduce the error with CXXFLAGS = -O0 and fixed it with the suggestions in http://stackoverflow.com/questions/11055802/static-and-extern-global-variables-in-c-and-c by replacing extern with const.

Re: [Bioc-devel] Register native routines

2016-03-15 Thread Martin Morgan
On 03/15/2016 12:30 PM, Aaron Taudt wrote: I know they were not registered because BiocCheck told me so. In addition, getDLLRegisteredRoutines('AneuFinder') returned an empty data.frame. But wrapping the R_init_ in an extern "C" block solved the problem: extern "C" { void R_init_AneuFinder(Dll

Re: [Bioc-devel] Register native routines

2016-03-15 Thread Aaron Taudt
I know they were not registered because BiocCheck told me so. In addition, getDLLRegisteredRoutines('AneuFinder') returned an empty data.frame. But wrapping the R_init_ in an extern "C" block solved the problem: extern "C" { void R_init_AneuFinder(DllInfo *dll) { R_registerRoutines(dll, CEntri

Re: [Bioc-devel] Register native routines

2016-03-15 Thread Martin Morgan
Hi Aaron -- On 03/15/2016 08:40 AM, Aaron Taudt wrote: I am trying to register my native routines as recommended by BiocCheck. I followed the instructions in "Writing R Extensions" and have implemented the following code in "init.cpp". However, the routines are still not registered. #include #

[Bioc-devel] Register native routines

2016-03-15 Thread Aaron Taudt
I am trying to register my native routines as recommended by BiocCheck. I followed the instructions in "Writing R Extensions" and have implemented the following code in "init.cpp". However, the routines are still not registered. #include #include #include "R_interface.h" // contains univariate_