Ubuntu上 Makefile编译应用时出错:relocations in generic ELF (EM: 40)

Ubuntu上 Makefile编译应用时出错:relocations in generic ELF (EM: 40)

在Ubuntu上. /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-之后,
用makefile去编译一个应用代码

报错:

/usr/bin/ld: Release/link/f.o: in function Beep(int)': f.cpp:(.text+0x0): multiple definition of Beep(int)'; Release/link/beep.o:beep.cpp:(.text+0x0): first defined here

/usr/bin/ld: api/libgsserial.a(libserial.o): relocations in generic ELF (EM: 40)
/usr/bin/ld: api/libgsserial.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:77:CSReader] 错误 1

网上搜过后,说是make clean 再次编译就行,可我再次编译还是同样报错
麻烦老大哥帮忙解决下编译问题>.<