Re: TBRIK inheritance

From: Nick van Eijndhoven (Nick@fys.ruu.nl)
Date: Fri Nov 21 1997 - 13:40:55 MET


*** Valery Fine wrote :
> 
> Dear William
> 
> On 19 Nov 97 at 19:02, you  wrote:
> 
> > 
> > I'm having difficulty with the following class which inherits TBRIK
> > on my WinNT (x86) workstation:
> > 
> > class Brick: public TBRIK
> > {
> >     protected:
> >   Float_t fx;
> >   Float_t fy;
> >   Float_t fz;
> >     public:
> >         Brick();
> >         Brick(Text_t *name, Text_t *title, Text_t *material, Float_t
> >         dx,
> > Float_t dy, Float_t dz, Float_t x, Float_t y, Float_t z);
> >         ~Brick();
> >         virtual void    Paint(Option_t *option);
> >         virtual void    SetPoints(Float_t *buff);
> >   void MakeSegments(Int_t *segs, Int_t c);
> >   void MakePolygons(Int_t *polys, Int_t c);
> >         ClassDef(Brick,1)  //TBrickshape
> > };
> > 
> > I build the dictionary using rootcint and all compiles error and
> > warning free.  But during the link stage, I get the following:
> > 
> > LINK : warning LNK4103: import of deleting destructor "public:
> > virtual void
> > * __thiscall TAttLine::`vector deleting destructor'(unsigned int)"; image
> > may not run correctly
> > LINK : warning LNK4103: import of deleting destructor "public:
> > virtual void
> > * __thiscall TAttFill::`vector deleting destructor'(unsigned int)"; image
> 
>    ....
> 
> > Should I worry about the warnings?  And if not, how to I deal with
> > the unresolved external references? As always, I'm really grateful
> > for all the help that the ROOT team and supporters have given me. 
> > Have a beer on me. :)
> > 
> 
> 
>   I took the source of your class and built a nice DLL from the 
> command prompt as follows:
> 
>   cl /LD /MD -DWIN32 -I%Rootsys%\src Brick.cpp  %rootsys%\lib\*.lib
> 
> 
>   with NO error or even warning messages !
>  
Hi Valery,
Could you try "cl /Za /LD /MD ....." in which case NO C++ extensions
are accepted.
Maybe this will give you the warnings.
To my opinion one should always use the 'strict ANSI requirement' in 
order to be able to transport the code to different platforms.

                                               Cheers,
                                                Nick.

*----------------------------------------------------------------------*
 Dr. Nick van Eijndhoven                Department of Subatomic Physics
 email : nick@fys.ruu.nl                Utrecht University / NIKHEF
 tel. +31-30-2532331 (direct)           P.O. Box 80.000
 tel. +31-30-2531492 (secr.)            NL-3508 TA Utrecht
 fax. +31-30-2518689                    The Netherlands
 WWW : http://www.fys.ruu.nl/~nick      Office : Ornstein lab. 172
 ----------------------------------------------------------------------
 tel. +41-22-7679751 (direct)           CERN PPE Division / ALICE exp.
 tel. +41-22-7675857 (secr.)            CH-1211 Geneva 23
 fax. +41-22-7679480                    Switzerland
 CERN beep : 13+7294                    Office : B 160 1-012
*----------------------------------------------------------------------*



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