Re: [Brahms-dev-l] BrMainDb compile question

From: Hironori Ito <hito@rcf.rhic.bnl.gov>
Date: Thu Jul 07 2005 - 23:32:23 EDT
Hello. It looks like your GCC is newer and stricter.  Although 
BrMain::ConnectToDB returns Bool_t, the code seems to ignore that fact, 
and it pretends to be  void method.  I guess that is not quite right.  I 
would say that one easy fix could be replace the line include 
ConnectToDB to something like
if ( !ConnectToDB( ( BrDb*)  XYZ, user)  cout << "Failed to connect 
database" << endl;  // or some better comment.
where XYZ is fFileCatalogDB, fGeoDB, etc..


Hiro

Stephen J. Sanders wrote:

> Hi:  We are trying to get brat installed on a new system and 
> encountering the
> following errors.  Has anyone else seen this?  It looks like a coding 
> error, but
> I don't see the same problem on other systems.
>
> On the problem system we are running
> [sanders@kunuc10 main]$ g++ --version
> g++ (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
>
> The other systems where brat runs correctly  have 3.2.3 installed.
> ..steve
>
> BrMainDb.cxx: In member function `virtual BrRunsDb* 
> BrMainDb::ConnectToRun(const Char_t*)':
> BrMainDb.cxx:147: error: no matching function for call to 
> `BrMainDb::ConnectToDB(BrDb*, const Char_t*&)'
> BrMainDb.cxx:96: note: candidates are: virtual Bool_t 
> BrMainDb::ConnectToDB(BrDb*&, const Char_t*)
> BrMainDb.cxx: In member function `virtual BrPassDb* 
> BrMainDb::ConnectToPass(const Char_t*)':
> BrMainDb.cxx:159: error: no matching function for call to 
> `BrMainDb::ConnectToDB(BrDb*, const Char_t*&)'
> BrMainDb.cxx:96: note: candidates are: virtual Bool_t 
> BrMainDb::ConnectToDB(BrDb*&, const Char_t*)
> BrMainDb.cxx: In member function `virtual BrCalibrationsDb* 
> BrMainDb::ConnectToCalib(const Char_t*)':
> BrMainDb.cxx:177: error: no matching function for call to 
> `BrMainDb::ConnectToDB(BrDb*, const Char_t*&)'
> BrMainDb.cxx:96: note: candidates are: virtual Bool_t 
> BrMainDb::ConnectToDB(BrDb*&, const Char_t*)
> BrMainDb.cxx: In member function `virtual BrGeometriesDb* 
> BrMainDb::ConnectToGeom(const Char_t*)':
> BrMainDb.cxx:189: error: no matching function for call to 
> `BrMainDb::ConnectToDB(BrDb*, const Char_t*&)'
> BrMainDb.cxx:96: note: candidates are: virtual Bool_t 
> BrMainDb::ConnectToDB(BrDb*&, const Char_t*)
> BrMainDb.cxx: In member function `virtual BrFileCatalogsDb* 
> BrMainDb::ConnectToFileCatalog(const Char_t*)':
> BrMainDb.cxx:201: error: no matching function for call to 
> `BrMainDb::ConnectToDB(BrDb*, const Char_t*&)'
> BrMainDb.cxx:96: note: candidates are: virtual Bool_t 
> BrMainDb::ConnectToDB(BrDb*&, const Char_t*)
> make: *** [BrMainDb.lo] 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-l
Received on Thu Jul 7 23:32:28 2005

This archive was generated by hypermail 2.1.8 : Thu Jul 07 2005 - 23:32:32 EDT