Re: [ROOT] Root Conflicts with Windows

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Sep 27 2000 - 11:59:49 MEST


Hi Matt,

   like discussed in this thread there are two independent issues at
stake. First MS has the habit to create defines for absolutely trivial
words (like #define Create CreateA) making sure that all code using the
word Create will be morphed and will fail to compile. To be safe one has to
create files which #undef half of all know common english words.

The other issue is about namespaces. Here we fully agree that ROOT should
use its own namespace and in the future we will do that (maybe in v3.0).
However we will only do that once ALL C++ compilers we use will support
this feature. We don't want to ifdef this feature depending on which
compiler is being used. Vendors are converging on ANSI C++ so I don't
forsee to much problems for the near future. But for now it is not
yet true.


Cheers, Fons.


On Tue, Sep 26, 2000 at 08:22:03AM -0700, Matthew D. Langston wrote:
> Hi Fons,
> 
> The ROOT libraries really should be in their own namespace.  All of the
> compilers which you provide binaries for support namespaces, do they not?
> 
> I occasionally, but consistently,  run into namepsace conflicts too.  In my
> own case it is not with system libraries, but with third party libraries
> (i.e. user code).
> 
> Why not put each release of ROOT into a separate namespace, i.e.
> 
> namespace ROOT_2_25_03
> {
>    ...
> }
> 
> Regards, Matt
> 
> ----- Original Message -----
> From: "Fons Rademakers" <Fons.Rademakers@cern.ch>
> To: "Dr. D. Sideris" <d.sideris@ic.ac.uk>
> Cc: <roottalk@pcroot.cern.ch>
> Sent: Tuesday, September 26, 2000 5:39 AM
> Subject: Re: [ROOT] Root Conflicts with Windows
> 
> 
> > Hi Dimitris,
> >
> >    what are the conflicts you see? Which symbols. ROOT does not have
> > conflicts with Win32 and MFC.
> >
> > Cheers, Fons.
> >
> >
> > On Tue, Sep 26, 2000 at 12:34:24PM +0100, Dr. D. Sideris wrote:
> > > Dear Root team, I'm trying to incorporate root in my c++ windows NT AFC
> application. There seem to be major conflicts between the libraries of root
> and windows. The suggested solution on the root documentation is to wrap
> root inside a class. But this implies effective manual renaming of every
> single call to root functions. This is clearly a serious problem especially
> since ms windows is officially supported by the root team. I hope there is
> intention to solve this problem in the next version of root.
> > >
> > > Regards
> > >
> > > Dimitris Sideris
> > > Imperial College London
> >
> > --
> > Org:    CERN, European Laboratory for Particle Physics.
> > Mail:   1211 Geneve 23, Switzerland
> > E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> > WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910
> >

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:33 MET