Re: ATLASFAST

From: Valery Fine (fine@bnl.gov)
Date: Thu Apr 30 1998 - 16:49:22 MEST


On 30 Apr 98 at 11:06, V.Koreshev,IHEP,Protvino,Mosc wrote:


> Compiling ATLFast.cxx I got a warning: "inconsistent DLL linkage".
> It references to line It references to line 84 in this file: ATLFast
> *gATLFast; Could you explain me what it means?


  It is expected warning and it is OK.

  The reason you defined the global variable in your header file as 
"extern DLL" and it is right definition unless you compile code (DLL)
defining this variable. For this code this variable is NOT external 
of course but you still need to use the same header file.

  In theory to avoid this message one needs a separate include file 
with no "extern" definion for this special case or surround that 
"extern" with something like #ifndef . . . #endif but all compilers 
manage this problem alone (well they are warning you to call one's 
attention if one made mistake really).

  Hope this helps,

                             Valery
=================================================================
Dr. Valeri Faine (Fine)
    -------------------          Phone: +1 516 344 7806
Brookhaven National Laboratory   FAX  : +1 516 344 4206
Bldg. 510A /STAR                 mailto:fine@bnl.gov
Upton, New York, 11973-5000      http://nicewww.cern.ch/~fine
USA
                                 
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              



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