Revision cc8edaf7e8e8eff2fc61804b5f00f0d32db7887d authored by Rene Brun on 01 July 2004, 20:02:52 UTC, committed by Rene Brun on 01 July 2004, 20:02:52 UTC
I attached the modifications that are needed in gcc3strm.cxx to compile with gcc 3.4.0. There are 2 problems. One is that I could not find any trace of ostream& operator<< (ostream&,const streampos&); in the gcc 3.3.1 or the gcc 3.4.0 header files. However it is in cint/lib/gcc3strm/iostrm.h and of course in gcc3strm.cxx The second problem is more fundamental. In gcc 3.4.0, streamoff is defined as (include/c++/3.4.0/bits/postypes.h) #ifdef _GLIBCXX_HAVE_INT64_T typedef int64_t streamoff; #else typedef long long streamoff; #endif in turn int64_t is platform dependent. In particular, on my node int64_t is typedef to an int. In gcc 3.3.1, streamoff was a long. This leads to the compilation error: cint/src/gcc3strm.cxx: In function `int G__G__stream_6_4_0(G__value*, const char*, G__param*, int)': cint/src/gcc3strm.cxx:149: error: 'const class std::fpos<mbstate_t>' has no member named 'operator long int' As a quick fix, I simply replaced the implementatio of the wrapper so that it does not do an explicit call to the operator long: const fpos<mbstate_t>*pos = (const fpos<mbstate_t>*)(G__getstructoffset()); G__letint(result7,108,(long)(*pos)); instead of G__letint(result7,108,(long)((const fpos<mbstate_t>*)(G__getstructoffset()))->operator long()); Of course, this is fundamentally wrong, since on a 64 bit platform, this will truncate the long long into a long. I am not sure what would be good solution (theoritically, it would require to make sure that the dictionary for fpos<mbstate_t> is different (long vs long long) on the appropriate platforms). git-svn-id: http://root.cern.ch/svn/root/trunk@9367 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 023bf10
TPadView3D.h
// @(#)root/base:$Name$:$Id$
// Author: Valery Fine(fine@vxcern.cern.ch) 30/05/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TPadView3D
#define ROOT_TPadView3D
//////////////////////////////////////////////////////////////////////////
// //
// TPadView3D //
// //
// TPadView3D is a generic 3D viewer. //
// For a concrete viewer see TGLViewer. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObjectView
// +SEQ,TObjectView.
#endif
#include "Gtypes.h"
#ifndef ROOT_TObject
#include "TObject.h"
#endif
class TVirtualPad;
class TPolyMarker3D;
class TPolyLine3D;
class TPoints3DABC;
class TNode;
class TRotMatrix;
//class TPadView3D : public TObjectView
class TPadView3D
{
protected:
TVirtualPad *fParent; // Pointer to the original TPad object
Double_t fViewBoxMin[3]; // Minimum of clip box
Double_t fViewBoxMax[3]; // Maximum of clip box
Double_t fTranslate[3]; // The vector to move object into the center of the scene
Double_t fExtraTranslate[3]; // The vector to move object with a mouse
Double_t fAngles[3]; // Latitude, Longitude, Psi
Double_t fExtraAngles[3]; // Latitude, Longitude, Psi
Double_t fAnglFactor[3]; // Latitude, Longitude, Psi
Float_t fScale; // The scale factor to control the border of the clip box
public:
TPadView3D() { fParent = 0;} //default ctor
TPadView3D(TVirtualPad *pad) { SetPad(pad); }
virtual ~TPadView3D();
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
TVirtualPad *GetPad() const { return fParent; }
virtual void Paint(Option_t *option="");
virtual void Size(Int_t width, Int_t height);
virtual void PaintBeginModel(Option_t *opt="");
virtual void PaintEnd(Option_t *opt="");
virtual void PaintScene(Option_t *opt="");
virtual void PaintPolyMarker(TPolyMarker3D *marker, Option_t *opt="");
virtual void PaintPolyLine(TPolyLine3D *line, Option_t *opt="");
virtual void PaintPoints3D(const TPoints3DABC *points,Option_t *opt="");
virtual void PushMatrix() { }
virtual void PopMatrix() { }
virtual void SetAttNode(TNode *node, Option_t *opt="");
virtual void SetLineAttr(Color_t color, Int_t width, Option_t *opt="");
void SetPad(TVirtualPad *pad=0) { fParent = pad; }
virtual void UpdateNodeMatrix(TNode *node, Option_t *opt="");
virtual void UpdatePosition(Double_t x,Double_t y,Double_t z,TRotMatrix *matrix, Option_t *opt="");
virtual void UpdateView() { }
// Getter's / Setter's methods for the data-members
virtual void GetRange(Double_t min[3], Double_t max[3]) const;
virtual void SetRange(Double_t min[3], Double_t max[3]);
virtual void GetShift(Double_t main_shift[3], Double_t extra_shift[3]) const;
virtual void SetShift(Double_t main_shift[3], Double_t extra_shift[3]);
virtual void GetAngles(Double_t main_angles[3], Double_t extra_angles[3]) const;
virtual void SetAngles(Double_t main_angles[3], Double_t extra_angles[3]);
virtual void GetAnglesFactors(Double_t factors[3]) const;
virtual void SetAnglesFactors(Double_t factors[3]);
virtual Float_t GetScale(){return fScale;}
virtual void SetScale(Float_t scale);
// ClassDef(TPadView3D,0) //Generic 3D viewer
};
inline void TPadView3D::ExecuteEvent(Int_t, Int_t, Int_t) { }
inline void TPadView3D::Paint(Option_t *) { }
inline void TPadView3D::Size(Int_t, Int_t) { }
inline void TPadView3D::PaintBeginModel(Option_t *) { }
inline void TPadView3D::PaintEnd(Option_t *) { }
inline void TPadView3D::PaintScene(Option_t *) { }
inline void TPadView3D::PaintPolyMarker(TPolyMarker3D *, Option_t *) { }
inline void TPadView3D::PaintPolyLine(TPolyLine3D *, Option_t *) { }
inline void TPadView3D::PaintPoints3D(const TPoints3DABC *,Option_t *){ }
inline void TPadView3D::SetAttNode(TNode *, Option_t *) { }
inline void TPadView3D::SetLineAttr(Color_t ,Int_t ,Option_t *) { }
inline void TPadView3D::UpdateNodeMatrix(TNode *, Option_t *) { }
inline void TPadView3D::UpdatePosition(Double_t ,Double_t ,Double_t ,TRotMatrix *, Option_t *){ }
#endif
Computing file changes ...