This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: GSL and Borland C++ Builder again
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Bolek Vrany <vrany at ure dot cas dot cz>
- Cc: GSL <gsl-discuss at sources dot redhat dot com>
- Date: Sun, 30 Mar 2003 16:53:55 +0100
- Subject: Re: GSL and Borland C++ Builder again
- References: <3E844472.5020409@ure.cas.cz>
Bolek Vrany writes:
> there was an error in my previous post on how to use GSL with Borland
> C++ Builder. I wrote you need the GSL DLL library compiled with
> Microsoft Visual C++ you can simply find at www.network-theory.co.uk,
> use the implib utility supplied with BCB to make an import library for
> that DLL and you need to redefine the GSL_VAR macro to
>
> > #ifndef GSL_VAR
> >
> > #if defined(__BORLANDC__) || defined(__BCPLUSPLUS__)
> > /* We have a Borland compiler
> > It has __WIN32__ instead of WIN32 in MSVC,
> > __DLL__ instead of _DLL in MSVC
> > also add extern to the macro
> > */
In the next release I am using separate preprocessor variables for
each case, and not using compiler variables like __DLL, so it will be
easier to select the appropriate definitions with other compilers.
I've also added the extern since that turns out to be needed for MSVC
too.
Brian