Re: Probleme with gdb

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 06 2000 - 12:44:31 MET


Hi Lionel,
It is difficult to answer your question without knowing the classes that
you use in your program fit.
Do you have the same program when you do
  gdb root.exe
 Try replacing $(LIBS) by $(GLIBS) in your makefile.

Rene Brun

Neukermans Lionel wrote:
> 
> Hi everybody,
> I'm running on alpha-dec-osf4.0 station and using ROOT Version   2.23/12.
> I have a problem on using gdb and I don't know the origin.
> I defined environement variables on my personal directory.
> > setenv ROOTSYS mydirectory/root
> >setenv LD_LIBRARY_PATH $ROOTSYS/lib
> 
> Then I compile and run a cc code , the makefile is given below
> 
> LDFLAGS = -g
> 
> CC         = g++
> CXX        = g++
> LINKER     = $(CC)
> 
> ROOTCFLAGS    = $(shell $(ROOTSYS)/bin/root-config --cflags)
> ROOTLIBS      = $(shell $(ROOTSYS)/bin/root-config --libs)
> ROOTGLIBS     = $(shell $(ROOTSYS)/bin/root-config --glibs)
> 
> CXXFLAGS      = -g $(ROOTCFLAGS)
> LIBS          = $(ROOTLIBS) -lMinuit
> GLIBS         = $(ROOTGLIBS) -lMinuit
> 
> CCNAME = fit
> 
> OBJ = $(CCNAME).o
> SRC = $(CCNAME).cc
> 
> all:    $(CCNAME)
> 
> $(CCNAME): $(OBJ) $(SRC)
>                 $(LINKER) $(LDFLAGS) -o $(CCNAME) $(OBJ) $(LIBS)
> $(SOFLAGS)
> 
> $(CCNAME).o: $(SRC) fit.h
>         $(CC) -c $(CCNAME).cc $(CXXFLAGS)
> 
> When I try to run it with gdb I have this error message : /sbin/loader:
> Fatal Error: Unresolved symbol in /root/lib/libGX11.so:
> AddClass__XPCcsPXv_v
> where /root is the root system version ???
> What do I wrong?
> 
> Thank you.
> Regards,
> Lionel Neukermans.



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET