我正在研究" San Diego Vision基准测试套件"源代码是用c语言编写的,它有make文件。通过Ubuntu中的终端我试图运行" gmake c-run"命令,它应该运行,但它给出以下错误。我搜索此网站时遇到类似的错误,但它对我没有帮助。它还声明了对ceil和floor的未定义引用,但是数学库是附加的,并且还使用了lm标志,因此它不应该显示此警告。
/tmp/ccTbPnbf.o: In function 'ffConv2_dY':
ffConv2_dY.c:(.text+0x4f): undefined reference to 'ceil'
ffConv2_dY.c:(.text+0x87): undefined reference to 'ceil'
/tmp/ccdUhc55.o: In function 'ffiConv2':
ffiConv2.c:(.text+0x53): undefined reference to 'ceil'
ffiConv2.c:(.text+0x8b): undefined reference to 'ceil'
/tmp/ccZYap2H.o: In function 'fiConv2':
fiConv2.c:(.text+0x49): undefined reference to 'ceil'
/tmp/ccZYap2H.o:fiConv2.c:(.text+0x81): more undefined references to 'ceil' follow
/tmp/ccrkxxLX.o: In function 'imageResize':
imageResize.c:(.text+0x38): undefined reference to 'floor'
imageResize.c:(.text+0x76): undefined reference to 'floor'
/tmp/ccxvX9jf.o: In function 'randnWrapper':
randnWrapper.c:(.text+0xc9): undefined reference to 'log'
collect2: error: ld returned 1 exit status
gmake: *** [compile] Error 1
有人可以指导我或给我一个提示,以便我能解决这个问题。