gcc –g –o test.o test.c -g有什么作用

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/14 13:05:11
gcc –g –o test.o test.c -g有什么作用

gcc –g –o test.o test.c -g有什么作用
gcc –g –o test.o test.c -g有什么作用

gcc –g –o test.o test.c -g有什么作用
-g 添加 debug 信息,加有 -g 编译后,程序可以用 gdb 调试