Hello Glide, I don't have GCC right now but you might want to try using
-UGSL_RANGE_CHECK instead of -DGSL_RANGE_CHECK=0 Best, Javier On Thu, Jul 22, 2010 at 12:37 AM, glide creme <[email protected]> wrote: > 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 > _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
