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.





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pygsl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pygsl-discuss

Reply via email to