search for: lifefund

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

2007 Aug 03
2
Problem with making dll under Windows
...C:\Programme\R\R-2.5.1/bin/SHLIB line 24. BEGIN failed--compilation aborted at C:\Programme\R\R-2.5.1/bin/SHLIB line 24. The file DynaLoader.pm is in the same directory as, e.g. XSLoader.pm The c-file itself is very simple: #include <Rinternals.h> #include <math.h> SEXP mypow(SEXP lifeFund, SEXP bow) { int i; double n; n = length(lifeFund); for (i=0; i<n; i++) REAL(lifeFund)[i] = pow((i+1)/n,REAL(bow)[0]); return(lifeFund); } Could anybody help, please? With many thanks and best regards, Stefan ____________________________________ Dr. Stefan Albrecht, CFA Allianz Pri...