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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/04 14:47:52
gcc–g–otest.otest.c-g有什么作用gcc–g–otest.otest.c-g有什么作用gcc–g–otest.otest.c-g有什么作用-g添加debug信息,加有-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 调试