<br><div>dear David Boersma:</div><div><br></div><div> thanks for your email. i fell i am very Idiot for can't do such a simple work.<br></div><div><br></div><div> i did as your suggestion.but some new error occer.</div><div><br></div><div>i use root 6.06.06</div><div><br></div><div>gcc 5.4.0</div><div><br></div><div>here is the error:<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>src/oneList_BonusKit.c: In function ‘print_list’:<br>src/oneList_BonusKit.c:221:14: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u64 {aka long unsigned int}’ [-Wformat=]<br> printf("list[%d]\t time = %llu nanos\t\t\t %llu picos\n",<br> ^<br>src/oneList_BonusKit.c:221:14: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u64 {aka long unsigned int}’ [-Wformat=]<br>gcc -I./includes/ -D_FILE_OFFSET_BITS=64 -fPIC -D_64 -std=c99 -c -o obj/calculatesizeevent.o src/calculatesizeevent.c<br>gcc -I./includes/ -D_FILE_OFFSET_BITS=64 -fPIC -D_64 -std=c99 -c -o obj/makeid.o src/makeid.c<br>gcc -I./includes/ -D_FILE_OFFSET_BITS=64 -fPIC -D_64 -std=c++98 -c -o obj/Gaussian.o src/Gaussian.cc<br>gcc -I./includes/ -D_FILE_OFFSET_BITS=64 -fPIC -D_64 -std=c++98 -c -o obj/Sigmoid.o src/Sigmoid.cc<br>gcc -I./includes/ -D_FILE_OFFSET_BITS=64 -fPIC -D_64 -std=c++98 -c -o obj/outputRootMgr.o src/outputRootMgr.cc<br>src/outputRootMgr.cc:30:19: fatal error: TFile.h: No such file or directory<br>compilation terminated.<br>makefile:50: recipe for target 'obj/outputRootMgr.o' failed<br>make: *** [obj/outputRootMgr.o] Error 1<br>yuanbo@yuanbo:~/gate/lmf/lmf_v3.0 $ <br><br></div><br><div id="">--------------------------------<br></div><div id="">
<div style="text-align: left;"><font size="4" face="宋体"><i>From Yuan Bo</i></font></div>
<div style="text-align: left;"><font size="4" face="宋体"><i>Zhengzhou University</i></font></div>
<div style="text-align: left;"><font size="4" face="宋体"><i>No.100 Science Avenue,Zhengzhou City, Henan Province P.R.China</i></font></div>
<div style="text-align: left;"><font size="4" face="宋体"><i>TEL:15263308323</i></font></div>
<div style="text-align: left;"><font size="4" face="宋体"><i>来自袁波</i></font></div>
<div style="text-align: left;"><font size="4" face="宋体">郑州大学物理工程学院C楼4层核医学仪器实验室</font></div>
<div style="text-align: left;"><font size="4" face="宋体">河南省郑州市中原区科学大道100号</font></div>
<div style="text-align: left;"><font size="4" face="宋体">电话:15263308323</font></div>
<br></div><br><div id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:David Boersma <david.boersma@acmit.at><br>收件人:gate-users <gate-users@lists.opengatecollaboration.org><br>主题:Re: [Gate-users] error install lmf<br>日期:2018年12月21日 19点48分<br></div><br>Dear Yuan Bo,<br>The LMF code is very old and is incompatible with modern compilers. But if you tell the compiler that it should use an old standard, then you will not get these errors. You can do this by adding "-std=c99" to the compiler flags for for *.c files, and "-std=c++98" for *.cc files. Lines 30-37 of the makefile would then look like this:<br>obj/%.o : src/%.c<br> gcc $(CFLAGS) -std=c99 -c -o $@ $<<br>obj/outputRootMgr.o : src/outputRootMgr.cc<br> gcc $(CFLAGS) $(ROOTCFLAGS) -std=c++98 -c -o $@ $<<br>obj/%.o : src/%.cc<br> gcc $(CFLAGS) -std=c++98 -c -o $@ $<<br>(Our mail programs are probably distorting the layout of this text. Please make sure that lines with "obj" are starting at the very beginning of the line, and lines starting with "gcc" should start with a TAB, and definitely not with normal spaces. Yes, the "make" grammar is a bit peculiar.)<br>With ROOT 5 and gcc version 7.3.0 this compiles on my machine. I did not try any other versions.<br>I hope that this helps you a little bit. Note that all this comes with VERY BIG DISCLAIMERS: I am not at all an LMF expert, and even though we provide the lmf tarball on our website, we do not officially support this. So I am not guaranteeing anything about whether the above will work. And even if it compiles, it may still run incorrectly: I did not test it... :-)<br>Good luck,<br>David Boersma<br>________________________________________<br>Von: Gate-users <gate-users-bounces@lists.opengatecollaboration.org> im Auftrag von 袁波 <gogenbyts@sina.com><br>Gesendet: Freitag, 21. Dezember 2018 10:17:27<br>An: gate-users<br>Betreff: [Gate-users] error install lmf<br>dear gate user:<br> me again. the picture lost ,so i write the error as follow:<br>[-Wformat=]<br> printf("\nThis %llu", tTail);<br> ^<br>src/oneList_flowchart.c:149:14: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘u64 {aka long unsigned int}’ [-Wformat=]<br> printf("\nis too old with this new %llu \n",<br> ^<br>gcc -I./includes/ -D_FILE_OFFSET_BITS=64 -fPIC -D_64 -c -o obj/testField.o src/testField.c<br>src/testField.c: In function ‘testField’:<br>src/testField.c:53:12: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]<br> if (*gets(reply) == 'y') {<br> ^<br>src/testField.c:53:11: error: invalid type argument of unary ‘*’ (have ‘int’)<br> if (*gets(reply) == 'y') {<br> ^<br>src/testField.c:89:6: error: invalid type argument of unary ‘*’ (have ‘int’)<br> if (*gets(reply) == 'y') {<br> ^<br>makefile:31: recipe for target 'obj/testField.o' failed<br>make: *** [obj/testField.o] Error 1<br>yuanbo@yuanbo:~/gate/lmf/lmf_v3.0$<br>--------------------------------<br>From Yuan Bo<br>Zhengzhou University<br>No.100 Science Avenue,Zhengzhou City, Henan Province P.R.China<br>TEL:15263308323<br>来自袁波<br>郑州大学物理工程学院C楼4层核医学仪器实验室<br>河南省郑州市中原区科学大道100号<br>电话:15263308323<br>_______________________________________________<br>Gate-users mailing list<br>Gate-users@lists.opengatecollaboration.org<br>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</div>