Update, I used the preprocessor commands as:
#include <stdlib.h> #include <stdio.h> #define HAVE_INLINE 1 #define GSL_RANGE_CHECK 0 //#define GSL_RANGE_CHECK_OFF 1 // Turn off range checking for arrays #include <gsl/gsl_check_range.h> #include <gsl/gsl_errno.h> // Error handler #include <gsl/gsl_math.h> // GSL basic math fucntions #include <gsl/gsl_block.h> // Allocating blocks #include <gsl/gsl_vector.h> // Allocating vectors and more #include <gsl/gsl_matrix.h> // Allocating matrices and more #include <gsl/gsl_blas.h> // Basic Linear Algebra Subprograms And in my compiling command, I remove the -DHAVE_INLINE option to avoid defining HAVE_INLINE twice. I go through the header source files and I think that this way I should have the options correctly set. But it still invokes the range checking no mater how. Best regards! Khoa. On 11 Apr 2014, at 9:58 am, Khoa Tran <khoa.t...@uon.edu.au> wrote: > Hi, > > I use this command to compile the program: > > gcc -Wall -I/usr/local/include -DHAVE_INLINE -c main.c > > So I assume that -DHAVE_INLINE helps me define HAVE_INLINE. Is that correct? > > I also use -UGSL_RANGE_CHECK when compiling as suggested in the old post. But > that doesn’t work. > > Best regards! > Khoa > > On 11 Apr 2014, at 9:51 am, Peter Johansson <troj...@gmail.com> wrote: > >> On 04/11/2014 09:44 AM, Khoa Tran wrote: >>> Can anybody help me clarify? >>> >> You can do the switch when you compile your program, but the switch is only >> available if you have defined HAVE_INLINE. >> >> hth, >> >> -- >> Peter Johansson >> >