search for: thisisthetest

Displaying 1 result from an estimated 1 matches for "thisisthetest".

2005 Apr 27
2
Problems compiling C code on windows
...st(SEXP a) { long int i; if (!isReal(a)) printf("Vector should be double.\n"); for (i=LENGTH(a)-1; i >=0; i--) { REAL(a)[i] = REAL(a)[i] + 1; } return (a); } Linux output: R CMD SHLIB thisisthetest.c gcc -I/usr/lib/R/include -I/usr/local/include -D__NO_MATH_INLINES -mieee-fp -fPIC -O2 -g -pipe -march=i386 -mcpu=i686 -c thisisthetest.c -o thisisthetest.o g++ -shared -L/usr/local/lib -o thisisthetest.so thisisthetest.o In R: > dyn.load("thisisthetest.so") > .Call(&q...