Re: Trouble linking against current brat- undef ref in DataPid

From: Truls Martin Larsen (t.m.larsen@fys.uio.no)
Date: Wed Sep 26 2001 - 06:41:40 EDT

  • Next message: Stephen J. Sanders: "Re: Trouble linking against current brat- undef ref in DataPid"

    Stephen J. Sanders wrote:
    
    > Hi,
    >  Hope someone can help with this.  I am trying to link a program with the
    > current brat libraries.  However, I get the following error:
    > 
    > /usr/local/lib/libBratDataPid.so: undefined reference to 
    > `TDatabasePDG::GetParti
    > cle(int) const'
    > /usr/local/lib/libBratDataPid.so: undefined reference to 
    > `TDatabasePDG::Instance
    > (void)'
    > collect2: ld returned 1 exit status
    > 
    > 
    > This problem developed somewhere between 2.0.33 (which is what I have been
    > using) and 2.1.3
    > 
    > I'm a using a freshly checked out version of brat.
    > 
    > ...steve
    > 
    
    
    We had th same problem here in Oslo. We had just changed to root 3.02. 
    After a little investigation we found out this: TDDatabasePDG is in 
    the root library libEG. You can just add "-lEG" in your makefile:
    
    ROOTLIBS 
    = $(shell root-config --glibs) -lEG
    
    
                                                     ^
    
    				                 |
    
    
    Then everything will work fine. You can probably do something before 
    you compile root to, but I haven't tried that.
    
    
    Regards
        Truls
    
    *---------------------------*
    |Truls Martin Larsen       /
    |T.M.Larsen@fys.uio.no    .
    |University of Oslo      //
    |Department of Physics  / \0
    |P.O.Box 1048 Blindern /\_/
    |0316 Oslo, Norway    /  /
    |Tel: +47 22857762   / --
    |                   /_/  |
    |Home address:     /     \
    |Eiksvn 58        |      '
    |1361 Østerås     |
    |Tel: +47 67155618|
    |Mob: +47 99691838|
    *-----------------*
    



    This archive was generated by hypermail 2b30 : Wed Sep 26 2001 - 06:42:24 EDT