$ ** make**
cd . && /bin/bash ./config.status Makefile depfiles
config.status: creating Makefile
config.status: executing depfiles commands
make all-am
make[1]: Entering directory '/home/zhang/hello'
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT hello.o -MD -MP -MF .deps/hello.Tpo -c -o hello.o hello.c
mv -f .deps/hello.Tpo .deps/hello.Po
gcc -g -O2 -o hello hello.o
hello.o:在函数‘main’中:
/home/zhang/hello/hello.c:6:对‘hello_str’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:369: recipe for target 'hello' failed
make[1]: *** [hello] Error 1
make[1]: Leaving directory '/home/zhang/hello'
Makefile:273: recipe for target 'all' failed
make: *** [all] Error 2
我的三个源文件是:hello.c / common.c / common.h
问题好像显示文件之间不能建立链接,才会出现函数未定义的问题。但自己试了很多次都无果,故求助各位大虾,谢谢!