help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] range check ?


From: glide creme
Subject: [Help-gsl] range check ?
Date: Thu, 22 Jul 2010 01:37:55 +0200

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]