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

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/12 03:56:25

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

-g 添加 debug 信息,加有 -g 编译后,程序可以用 gdb 调试