[Gate-users] Error compiling filemerger
Jan De Beenhouwer
jan.debeenhouwer at ugent.be
Thu Aug 21 10:01:07 CEST 2008
Hi,
finite(x) is part of the libm library. Perhaps it is not installed?
Your makefile should link with it by: -lm , which it does.
Jan
On Wed, 2008-08-20 at 14:57 -0400, KB wrote:
> 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.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
--
MScE Jan De Beenhouwer
Ghent University Hospital
IBITECH - MEDISIP
De Pintelaan 185
Block B - 5th floor
B-9000 Ghent
Tel. +32-9-332.43.26
Fax: +32-9-332.33.90
E-mail: <Jan.DeBeenhouwer at UGent.be>
More information about the Gate-users
mailing list