hi, this is an old classic... at least when you are not using the same version of the compiler as they do at brookhaven. Change the forward declaration (class ostream;) on line 26 in the header file to #include ostream. There is usage of an ostream operator in line 84 ... that should fix it. I'm not completely sure if this is the best way to solve it, but I guess so... newer versions of gcc are more strict than the old ones... Cheers, Truls *-----------------------------* |http://www.nbi.dk/~trulsml / |Truls Martin Larsen / |trulsml@nbi.dk . |The Niels Bohr Institute // |Work Address: / \0 |Blegdamsvej 17 /\_/ |DK-2100 Copenhagen / / |Tel: +45 35325269 / -- | /_/ | |Home address: / \ |Ingerslevsgade | ' |146, 1. TH | |1705 København V | |Denmark | |Mob: +45 20974802 | *------------------* On Tue, 10 May 2005, Johnson, Erik B wrote: > Would the person responsible for this error fix it and commit the correction to brat. Thanks. Erik > > > BrDCHitPosition.h:84: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > BrDCHitPosition.h:84: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > In file included from BrDetectorTrack.h:42, > from Include.h:17, > from data_track_Cint.h:32, > from data_track_Cint.cxx:16: > ../../util/BrVector3D.h:108: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrVector3D.h:108: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > In file included from BrDetectorTrack.h:46, > from Include.h:17, > from data_track_Cint.h:32, > from data_track_Cint.cxx:16: > ../../util/BrLine3D.h:50: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:50: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:51: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:51: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:56: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:56: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:57: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > ../../util/BrLine3D.h:57: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > In file included from Include.h:17, > from data_track_Cint.h:32, > from data_track_Cint.cxx:16: > BrDetectorTrack.h:102: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > BrDetectorTrack.h:102: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > In file included from Include.h:20, > from data_track_Cint.h:32, > from data_track_Cint.cxx:16: > BrLocalTrack.h:137: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > BrLocalTrack.h:137: `ostream' denotes an ambiguous type > BrDCHitPosition.h:26: first type here > /usr/include/c++/3.2.3/iosfwd:61: other type here > make[2]: *** [data_track_Cint.lo] Error 1 > make[2]: Leaving directory `/home/ebj/brat/data/track' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ebj/brat/data' > make: *** [all-recursive] Error 1 > > > _______________________________________________ > Brahms-dev-l mailing list > Brahms-dev-l@lists.bnl.gov > http://lists.bnl.gov/mailman/listinfo/brahms-dev-l > _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l@lists.bnl.gov http://lists.bnl.gov/mailman/listinfo/brahms-dev-lReceived on Tue May 10 14:40:32 2005
This archive was generated by hypermail 2.1.8 : Tue May 10 2005 - 14:40:36 EDT