jiyiche 发表于 2009-12-16 17:02

这个简单的Makefile生成的应用程序为什么不能进行调试

myprog: main.o BST.o      
   gcc -g -o myprog main.o BST.o
main.o: main.c BST.h
   gcc -c -g main.c
BST.o: BST.c BST.h
   gcc -c -g BST.c
clean:
   rm -f myprog main.o BST.o

sinanjj 发表于 2009-12-16 18:21

加 -g

jiyiche 发表于 2009-12-16 18:40

我有加 -g 啊,楼上的
页: [1]
查看完整版本: 这个简单的Makefile生成的应用程序为什么不能进行调试