Re: [ROOT] variable length branches in TTree's

From: Feng Shengqin (fengsq@iopp.ccnu.edu.cn)
Date: Tue Jun 20 2000 - 14:50:34 MEST


Hello Rene,

I am a new user of root, I use the root_v2.20.Linux.2.0.33.egcs.tar
version,
 
The makefile is as follow:
^^^^^^^^^^^^^^^^^^^^^^^^
#########################################################################
# For Redhat linux:

ObjSuf        = o
SrcSuf        = cxx
ExeSuf        =
DllSuf        = so
EVENTLIB      = $(EVENTO)
OutPutOpt     = -o
	
ROOTLIBS      = -L$(ROOTSYS)/lib -lNew -lBase -lCint -lClib -lCont -lFunc
\
                -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit
-lNet \
                -lPostscript -lProof -lTree -lUnix -lZip
ROOTGLIBS     = -lGpad -lGui -lGX11 -lX3d

# Linux
CXX           = g++
CXXFLAGS      = -O -Wall -fPIC -I/usr/include/g++ -I$(ROOTSYS)/include 
LD            = g++
LDFLAGS       = -g
SOFLAGS       = -Wl,-soname,libEvent.so -shared
#LIBS          = $(ROOTLIBS) -lm -lg++ -ldl -rdynamic
LIBS          = $(ROOTLIBS) -lm -lg++ -ldl -rdynamic
GLIBS         = $(ROOTLIBS) $(ROOTGLIBS) -L/usr/X11R6/lib \
                -lXpm -lX11 -lg++ -lm -ldl -rdynamic
# -lXpm -lX11 -lg++ -lm -ldl -rdynamic

PROJPGMO       = HBTProj.$(ObjSuf)
PROJPGMS       = HBTProj.$(SrcSuf)
PROJPGM        = HBTProj$(ExeSuf)

FITPGMO       = HBTFit.$(ObjSuf)
FITPGMS       = HBTFit.$(SrcSuf)
FITPGM        = HBTFit$(ExeSuf)
#------------------------------------------------------------------------------
$(PROJPGM):      $(PROJPGMO)
		$(LD) $(LDFLAGS) $(PROJPGMO) $(GLIBS) $(OutPutOpt)
$(PROJPGM)
		@echo "$(PROJPGM) done"

$(FITPGM):      $(FITPGMO)
		$(LD) $(LDFLAGS) $(FITPGMO) $(GLIBS) $(OutPutOpt)
$(FITPGM)
		@echo "$(FITPGM) done"


clean:
		@rm -f *.$(ObjSuf) core

.SUFFIXES: .$(SrcSuf)

.$(SrcSuf).$(ObjSuf):
	$(CXX) $(CXXFLAGS) $< -o $@
#	$(CXX) $(CXXFLAGS) -c $<
	
#############################################################################

but when i type make -f m_linux then show:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
g++ -g HBTProj.o -L/ROOT/root/lib -lNew -lBase -lCint -lClib -lCont -lFunc
-lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet -lPostscript
-lProof -lTree -lUnix -lZip -lGpad -lGui -lGX11 -lX3d -L/usr/X11R6/lib
-lXpm -lX11 -lg++ -lm -ldl -rdynamic -o HBTProj
/usr/bin/ld: cannot open -lg++: No such file or directory
collect2: ld returned 1 exit status
gmake: *** [HBTProj] Error 1

Would you like to tell me the reason and how can i solve the problem?
                              ^^^^^      ^^^       ^^^^^
thank you! 

Best regards, Shengqin

==============================
    name:     Shengqin Feng   
    email:    fengsq@iopp.ccnu.edu.cn
  address:    Institute of Particle Physics,
              Huazhong Normal University,430079,
              Wuhan,China
telephone:    011-86-27-87673314
     Fax :    011-86-27-87662646   
=================================== 



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