[Gate-users] Error compiling filemerger
KB
kd8had at gmail.com
Thu Aug 21 16:16:22 CEST 2008
Hello Jan,
I am compiling with the libm library. My makefile has this line:
LIBS = -L/share/apps/ROOT_5.18.00/lib -lCore -lCint -lTree -lMatrix
-lm -ldl -lHist
and I have the libm libraries installed too.
[root at cluster lib]# ls -l /usr/lib/libm.so
lrwxrwxrwx 1 root root 19 Aug 15 10:25 /usr/lib/libm.so -> ../../lib/libm.so.6
Any ideas? Thanks
Karthik.
On Thu, Aug 21, 2008 at 4:01 AM, Jan De Beenhouwer
<jan.debeenhouwer at ugent.be> wrote:
> 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