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

From: Stephen J. Sanders <ssanders@ku.edu>
Date: Fri Jul 08 2005 - 03:03:31 EDT
You don't think the problem is with having the prototype arguments 
defined as
>> BrDb*&, const Char_t*
while the calling code uses
>> BrDb*, const Char_t*&
???

This is what looks strangest to me...although I would have expected 
more serious
consequences.

...steve
On Jul 7, 2005, at 10:32 PM, Hironori Ito wrote:

> 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 Fri Jul 8 03:03:39 2005

This archive was generated by hypermail 2.1.8 : Fri Jul 08 2005 - 03:03:49 EDT