From: <emu...@ki...> - 2006-10-05 09:49:45
|
Hi All, it seems there's an error in the initial #defines logic of diff_deriv_common.c #define _PYGSL_HAS_DERIV 0 but #ifdef _PYGSL_HAS_DERIV is true! I think it should be changed to: #if _PYGSL_HAS_DERIV==1 etc... Thus it should read: #if (PYGSL_GSL_MAJOR_VERSION == 1) && (PYGSL_GSL_MINOR_VERSION < 5) #define _PYGSL_HAS_DERIV 0 #else #define _PYGSL_HAS_DERIV 1 #endif #include <pygsl/error_helpers.h> #include <pygsl/function_helpers.h> #if _PYGSL_HAS_DERIV==1 #include <gsl/gsl_deriv.h> #endif #ifdef PyGSL_DERIV_MODULE #if _PYGSL_HAS_DERIV==0 #error "The deriv module was only introduced by GSL 1.5. You seem to compile against an older verion!" #endif #endif /* PyGSL_DERIV_MODULE */ With these changes, PyGSL builds for me with GSL 1.3 ... cheers, e. |