Hi I'm having trouble disabling the range checking in the gsl.
I guess I'm abit rusty in the cpreprocessor macro world, so if someone
can elaborate on issue.

Given the following code.

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <gsl/gsl_vector.h>



int main(int argc,char **argv){
  int i;
  gsl_vector * v = gsl_vector_alloc (3);

  for ( i = 0; i < 3; i++)
    gsl_vector_set (v, i, 1.23 + i);

  for ( i = 0; i < 4; i++)
    printf ("v_%d = %g\n", i, gsl_vector_get (v, i));


  gsl_vector_free (v);
  return 0;
}

And compiling like

gcc -lgsl gsl.c -lgslcblas -DHAVE_INLINE -DGSL_RANGE_CHECK=0

I still get the
gsl: ../gsl/gsl_vector_double.h:177: ERROR: index out of range

thanks in advance.

_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to