public
anonymous / gist:5785498
Created

Error from compiling f4 function

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
ERROR(s) during compilation: source code errors or compiler configuration errors!
 
Program source:
1: #include <R.h>
2: #include <Rdefines.h>
3: #include <R_ext/Error.h>
4:
5:
6: extern "C" {
7: SEXP file11b424fb58f ( SEXP x );
8: }
9:
10: SEXP file11b424fb58f ( SEXP x ) {
11:
12: int imin = 0, imax = Rf_length(x) - 1, imid;
13: while (imax >= imin) {
14: imid = imin + (imax - imin) / 2;
15: if (REAL(x)[imid] >= 0)
16: imax = imid - 1;
17: else
18: imin = imid + 1;
19: }
20: return ScalarInteger(imax + 1);
21:
22: warning("your C program does not return anything!");
23: return R_NilValue;
24: }
Error in compileCode(f, code, language, verbose) :
Compilation ERROR, function(s)/method(s) not created!
In addition: Warning message:
running command 'F:/R/R-30~1.1/bin/i386/R CMD SHLIB file11b424fb58f.cpp 2> file11b424fb58f.cpp.err.txt' had status 1

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.