[Gate-users] Error compiling filemerger
KB
kd8had at gmail.com
Wed Aug 20 20:57:25 CEST 2008
Hello All,
In GATE version 3.1.2, I cannot seem to compile the filemerger.
Everything (gate, gjs) else compiles well.
Here is the error I get:
[root at cluster filemerger]# make
creating object file for src/GateMergeManager
src/GateMergeManager.cc: In member function 'bool
GateMergeManager::FastMergeGate(std::string)':
src/GateMergeManager.cc:504: warning: unused variable 'maxtime'
src/GateMergeManager.cc: In member function 'bool
GateMergeManager::MergeGate(TChain*)':
src/GateMergeManager.cc:690: error: 'finite' was not declared in this scope
make: *** [tmp/src/GateMergeManager.o] Error 1
---------------------------------------------------------
My makefile looks like this:
[root at cluster filemerger]# cat Makefile
EXE = gjm
SRCDIRS = . src
INCDIRS = . include /usr/local/include/root/
LIBS = -L/usr/local/lib -lCore -lCint -lTree -lMatrix -lm -ldl -lHist
CC = g++
LFLAGS = -s
CFLAGS = -Wall -O2 -fPIC
SRC = $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.cc))
OBJ = $(addprefix tmp/, $(SRC:.cc=.o))
DEP = $(addprefix tmp/,$(SRC:.cc=.d))
INCLUDE = $(addprefix -I, $(INCDIRS) )
.PHONY: clean dirs
$(EXE): dirs $(OBJ)
@echo;echo linking $(EXE)
@$(CC) -o $(EXE) $(OBJ) $(LFLAGS) $(LIBS)
tmp/%.o: %.cc
@echo;echo creating object file for $*
@$(CC) -Wp,-MMD,tmp/$*.dd $(CFLAGS) $(INCLUDE) -c $< -o $@
@sed -e '1s/^/$(subst /,\/,$(dir $@))/' tmp/$*.dd > $*_tmp; mv
$*_tmp tmp/$*.d
@rm -f tmp/$*.dd
%.hh: ;
clean:
@echo clean!
@-rm -r tmp
dirs:
@-if [ ! -e tmp ]; then mkdir tmp; fi;
@-$(foreach DIR,$(SRCDIRS), if [ ! -e tmp/$(DIR) ]; then mkdir
tmp/$(DIR); fi; )
-include $(DEP)
Thanks for any help.
Karthik.
More information about the Gate-users
mailing list