This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
gsl with MSVC
- To: jmbuena at dia dot fi dot upm dot es <jmbuena at dia dot fi dot upm dot es>
- Subject: gsl with MSVC
- From: bachg <bachg at sina dot com>
- Date: Wed, 18 Apr 2001 16:42:33 +0800
- CC: gsl-discuss at sources dot redhat dot com <gsl-discuss at sources dot redhat dot com>
Hello,Jose:
First I want to thank you for your porting of gsl on MSVC.I have downloaded the tarball
version and try to build it.Seems there's some minor errors in the gsl_mode.h
the original one is like this:
...........
#ifdef HAVE_INLINE
extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);
extern inline unsigned int
GSL_MODE_PREC(gsl_mode_t mt)
{ return (mt & (unsigned int)7); }
#else /* HAVE_INLINE */
#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
#endif /* HAVE_INLINE */
................
the modified one is like this:
#ifdef HAVE_INLINE
#ifdef _MSC_VER
#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
#else
extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);
extern
inline unsigned int
GSL_MODE_PREC(gsl_mode_t mt)
{ return (mt & (unsigned int)7); }
#endif /* _MSC_VER */
#else /* HAVE_INLINE */
extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);
#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
#endif /* HAVE_INLINE */
seems there's something wrong with this,I comment out this line in order to build
/*extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);