Re: DllImport.h EXTERN defintion

From: Rene Brun (brun@hpbrun.cern.ch)
Date: Wed Aug 05 1998 - 08:43:32 MEST


EXTERN is a typedef defined to extern on Unix and the DllInport
or DllExport facility under Windows. The definition of EXTERN
greatly simplifies the creation of DLLs on NT.
Very likely TCL is using the same trick.
We could rename this macro to something else if we do not
receive complaints from users.

Rene Brun


On Tue, 4 Aug 1998, stefan kluth wrote:

> 
> Hi,
> 
> I have a small problem with the defintion of the macro EXTERN in
> DllImport.h. It collides with a macro of the same in
> /usr/local/include/tcl.h. I try to use root histograms and ntuples in our
> BaBar analysis framework, which is tcl based. 
> 
> As far as I could see, these macros define the same thing (on unix
> systems), but I do get compiler warnings. 
> 
> Is it possible to avoid the use of the EXTERN macro in root on unix
> systems altogether or to rename it to something which will less likely
> collide with something else, e.g. name it ROOT_EXTERN?
> 
> cheers, Stefan
> 
> ---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
> -  LBNL, MS 50A 2160       -  phone:  +1 510 495 2376  -  |/  |/      -
> -  1 Cyclotron Rd.         -  fax:    +1 510 495 2957  -  |\/\|\/\|'  -
> ---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:35 MET