search for: getprim

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

Did you mean: getprio
2003 Nov 16
2
Error when calling a dll procedure
...implementation of a function to find all primes below a given numeric value -> its just an exercises to get familar with R/C++). >#include <vector> > >using namespace std; > >extern "C" { >#include <R.h> >#include <Rdefines.h> >} > >SEXP getPrimes(SEXP a) >{ >SEXP c; > //my implementation > >return c; >} Here is the output (hopefully without any typos) of the process building the dll: >Rcmd SHLIB Primes.cc >making Primes.d from Primes.c >g++ -IE:\programs\R\rw1071\src\include -Wall -02 -c Primes.cc -o Prim...