bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] Bug report with VC7


From: Brian Gough
Subject: Re: [Bug-gsl] Bug report with VC7
Date: Thu, 6 Mar 2003 22:20:17 +0000

Vincent Sacksteder writes:
 > Dear GSL developers, thanks for all your work.  I just installed your
 > library and started using it with the Microsoft VC7 compiler. 
 > The bug I am reporting is that the linker is unable to find gsl_rng_mt19937,
 > or any other constant, in the gsl.lib or gsl.dll.  It is, however, able to
 > find all the functions exported by gsl.dll.  And I checked that it wasn't a
 > problem with my compile settings by switching to ANSI compatibility mode and
 > also requiring the compiler to treat all my code as C code.
 > 

Hi,
Thanks for the bug report.

In VC6 the macro _DLL is defined when compiling the application using
a multi-threaded DLL (i.e. using /MD).  This picks up the correct
(dllimport) line.

It looks like VC7 doesn't define _DLL, but defines _WINDLL or _USRDLL
instead.

I will modify GSL to check #ifdef GSL_DLL instead of or in addition to
#ifdef _DLL.  In the meantime the simplest workaround may be to define
_DLL manually.

If you still have problems with #include <gsl/...> vs <...> could you
send a bug report for that.

best regards,

-- 
Brian Gough

----------------------------------------------------------------------
Network Theory Ltd           Phone: +44 117 3179309 (UK: 0117 3179309)
15 Royal Park                  Fax: +44 117 9048108 (UK: 0117 9048108)
Bristol BS8 3AL                WWW: http://www.network-theory.co.uk/
United Kingdom               Email: address@hidden     
----------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]