Re: [ROOT] TDatabasePDG::Instance()

From: Pasha Murat (630)840-8237@169G ((630)840-8237@169G)
Date: Thu May 17 2001 - 00:15:02 MEST


Axel: I couldn't reproduce your problem on Linux - here your example 
builds just fine. TDatabasePDG::fgInstance should be resolved by libEG -
you may double check if it is true in your case by using windows equivalent
of UNIX `nm'.
						best, Pasha
Axel Naumann wrote:
> 
> Hi,
> 
> I'm linking root against this main:
> 
> #include "TROOT.h"
> #include "TDatabasePDG.h"
> int main(int argc, char* argv[]){
>     TROOT gRoot("globRoot","global Root");
>     TDatabasePDG::Instance();
>     return 0;
> }
> 
> and the linker complains about
> teststuff.obj : error LNK2001: unresolved external symbol "protected: static
> class TDatabasePDG *  TDatabasePDG::fgInstance"
> (?fgInstance@TDatabasePDG@@1PAV1@A)
> Release/teststuff.exe : fatal error LNK1120: 1 unresolved externals
> 
> The link line is "libCore.lib libEG.lib". I'm using MS VC++ 6, Win 2000; it
> happens with both Root 3.00/06 and Root 3.01/00.
> 
> Any ideas about what's going on here?
> 
> Cheers, Axel.



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:25 MEST