This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GSL and Borland C++ Builder again


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]