Displaying 1 result from an estimated 1 matches for "r_arg_in".
2012 Feb 06
1
Segfault on ".C" registration via R_CMethodDef according to 'Writing R Extensions'.
..._FUNC) &myC, 4}, /* works */
{NULL, NULL, 0}
};
There are still warnings/segfault or an error when initializing the undocumented fifth entry (parameter passing style), e.g.
R_CMethodDef cMethods[] = {
{"myC", (DL_FUNC) &myC, 4, {REALSXP, INTSXP, STRSXP, LGLSXP}, {R_ARG_IN, R_ARG_IN, R_ARG_IN, R_ARG_IN}, /* segfault! */
{NULL, NULL, 0}
};
Using a C source, the warnings are:
*** arch - i386
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g...