Well, my problem is that I couldn’t compile my own application because I got the errors:
lncms01> gmake -f MakeAnalyzav00
g++ -I/usr/local/root/3.10.02.2952//include -Wall -g -ansi -lm -D_REENTRANT -I/usr/local/root/3.10.02.2952//include -L/usr/local/root/3.10.02.2952//lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lpthread -lm -ldl -rdynamic -L/usr/local/root/3.10.02.2952//lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -lpthread -lm -ldl -rdynamic -L-L/usr/local/root/3.10.02.2952//lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lpthread -lm -ldl -rdynamic -o Analizav00 AnalizaMainv00.cxx AnalizaGUIv00.cxx
/tmp/ccKIm9Sc.o: In function TQObjSender::SetSenderClassName(char const *)': /usr/local/root/3.10.02.2952/include/TQObject.h(.data+0x0): multiple definition of
mb_button_id’
/tmp/ccB5LWIM.o:/usr/local/root/3.10.02.2952/include/TGClient.h:85: first defined here
/tmp/ccKIm9Sc.o: In function TQObjSender::SetSenderClassName(char const *)': /usr/local/root/3.10.02.2952/include/TQObject.h(.data+0x24): multiple definition of
mb_icon’
/tmp/ccB5LWIM.o:/usr/local/root/3.10.02.2952/include/TGClient.h:85: first defined here
/tmp/ccKIm9Sc.o: In function TQObjSender::SetSenderClassName(char const *)': /usr/local/root/3.10.02.2952/include/TQObject.h(.data+0x34): multiple definition of
filetypes’
/tmp/ccB5LWIM.o:/usr/local/root/3.10.02.2952/include/TGClient.h:85: first defined here
/tmp/ccKIm9Sc.o: In function TQObjSender::SetSenderClassName(char const *)': /usr/local/root/3.10.02.2952/include/TQObject.h(.data+0x60): multiple definition of
histo_data’
/tmp/ccB5LWIM.o:/usr/local/root/3.10.02.2952/include/TGClient.h:85: first defined here
/tmp/ccKIm9Sc.o: In function TQObjSender::SetSenderClassName(char const *)': /usr/local/root/3.10.02.2952/include/TQObject.h(.data+0xc0): multiple definition of
function_data’
/tmp/ccB5LWIM.o:/usr/local/root/3.10.02.2952/include/TGClient.h:85: first defined here
/tmp/ccKIm9Sc.o: In function TQObjSender::SetSenderClassName(char const *)': /usr/local/root/3.10.02.2952/include/TQObject.h(.data+0x100): multiple definition of
tree_data’
/tmp/ccB5LWIM.o:/usr/local/root/3.10.02.2952/include/TGClient.h:85: first defined here
/usr/lib/gcc-lib/i386-redhat-linux/2.96/…/…/…/crt1.o: In function _start': /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to
main’
collect2: ld returned 1 exit status
gmake: *** [Analizav00] Error 1
lncms01>
My makefile … is :
-------------------------------------------------------------------------------
–
– Project: Telescópio de Raios Cósmicos
–
– MAKEFILE FOR ANALIZA (Version 00) - Build 2004.05.03
–
– This program analysis the data files from Labview.
–
– Author: João Pires (jpires@lip.pt)
–
– L.I.P., Laboratorio de Instrumentacao e Fisica Experimental de Particulas
–
-------------------------------------------------------------------------------
compiler and flags
#ROOTSYS = /usr/local/root/3.10.01.296
C = g++
CFLAGS = -I$(ROOTSYS)/include -Wall -g -ansi
#CLFAGS = -Wall -g -ansi
CLIBS = -lm
root libraries and flags
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
#sources and libraries
SRC = AnalizaMainv00.cxx AnalizaGUIv00.cxx #AnalizaAmplitudev00.cxx
LIBS = -L$(ROOTLIBS)
#program
PROGRAM = Analizav00
#create convert target
$(PROGRAM): $(SRC)
$© $(CFLAGS) $(CLIBS) $(ROOTCFLAGS) $(ROOTLIBS) $(ROOTGLIBS) $(LIBS) -o $(PROGRAM) $(SRC)
If some one could help me I’m greatfull
Cheers,
João Pires