Hi, I am working on alpha with Version 2.00/13 30 October 1998 CINT/ROOT C/C++ Interpreter version 5.13.78, Oct 22 1998 I try to compile a cc code which calls root libraries. The makefile is given below. Everything was fine until I use the class TFile. I cannot succeed to compile, the compilation messages are : g++ -c Fit2.cc -g -I/opt/root.g++/include g++ -g -o Fit2 Fit2.o -L/opt/root.g++/lib -lNew -lBase -lCint -lClib -lCont -lFunc -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet -lPostscript -lProof -lRint -lTree -lUnix -lZip -lGpad -lGui -lGX11 -lX3d -L/usr/lib/Motif1.2 -L/usr/lib/X11R5 -lXpm -lX11 -lm -lPW /usr/bin/ld: Unresolved: TFile::TFile(char const *, char const *, char const *, int) collect2: ld returned 1 exit status *** Exit 1 Stop. Any clues ? Many thanks in advance, Pascal Perrodo. ---MAKEFILE-------- # # Makefile for complile of c++ code with call to ROOT libs # C++FLAGS = -g -I$(ROOTSYS)/include LDFLAGS = -g CC = g++ CXX = g++ LINKER = $(CC) ROOTLIBS = -L$(ROOTSYS)/lib -lNew -lBase -lCint -lClib -lCont -lFunc \ -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet \ -lPostscript -lProof -lRint -lTree -lUnix -lZip ROOTGLIBS = -lGpad -lGui -lGX11 -lX3d LIBS = $(ROOTLIBS) -lm GLIBS = $(ROOTLIBS) $(ROOTGLIBS) -L/usr/lib/Motif1.2 -L/usr/lib/X11R5 \ -lXpm -lX11 -lm -lPW CCNAME = Fit1 OBJ = $(CCNAME).o SRC = $(CCNAME).cc all: $(CCNAME) $(CCNAME): $(OBJ) $(SRC) $(LINKER) $(LDFLAGS) -o $(CCNAME) $(OBJ) $(GLIBS) $(SOFLAGS) $(CCNAME).o: $(SRC) $(CC) -c $(CCNAME).cc $(C++FLAGS)
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET