我正在尝试从http://www.irisa.fr/metiss/guig/spro建立SPRO
他们使用Automake 1.6.2生成makefile.
我的问题是,当我尝试制作项目时,我收到错误
"undefined reference to 'sin' " 等等
这是错误图像

此错误是由于数学库未包含在-lmflag中但-lm存在于makefile.am
这是我的 makefile.am
AUTOMAKE_OPTIONS = 1.4 foreign
ACLOCAL_AMFLAGS = -I auxdir
LDADD = -lm -L. -lspro @sphere_lib@
INCLUDES = @sphere_include@
include_HEADERS = spro.h
lib_LIBRARIES = libspro.a
noinst_HEADERS = getopt.h
libspro_a_SOURCES = system.h spro.h sig.c spf.c header.c misc.c lpc.c convert.c fft.c
bin_PROGRAMS = scopy slpc slpcep sfbank sfbcep
noinst_PROGRAMS = scompare
scopy_SOURCES = scopy.c getopt.c getopt1.c
scopy_DEPENDENCIES = libspro.a
slpc_SOURCES = …Run Code Online (Sandbox Code Playgroud) 我运行以下代码:
import sys
def find_common(a,b,c):
d=[]
for i in a:
if i in b:
d=d.append(i)
for i in d:
if i not in c:
c=c.append(i)
print(c)
return c
if __name__ == '__main__':
a=[1,1,2,4]
b=[2,2,3,4]
c=[]
find_common(a,b,c)
sys.exit()
Run Code Online (Sandbox Code Playgroud)
但出现以下错误:
d=d.append(i)
AttributeError: 'NoneType' object has no attribute 'append'
Run Code Online (Sandbox Code Playgroud)
为什么会发生这种情况?请帮忙修复它。