【发布时间】:2018-05-16 23:06:35
【问题描述】:
我有一个名为 neuromz 的程序,我使用
gcc neuromz.c -lm -o neuromz
它工作正常,但如果我尝试将configure.ac 和Makefile.am 与Makefile.am 添加到我的项目中:
bin_PROGRAMS = neuromz
neuromz_SOURCES = neuromz.c neuromz.h ann.c ann.h
neuromz_CFLAGS = -lm
结果是:
/home/mz/programming/ctest/ANN/ann.c:11: undefined reference to `exp'
/home/mz/programming/ctest/ANN/ann.c:11: undefined reference to `exp'
我该如何解决?
【问题讨论】: