且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在gdb中没有调试符号,即使使用-g标志进行编译

更新时间:2023-09-26 08:24:46

我非常抱歉。结果是我的makefile的clean:部分被破坏了。因此,当我使用make clean没有发生。手动删除.o文件解决问题。标志现在完美。感谢大家谁发布反正!这可以立即删除。

Ahh. I'm very sorry. It turns out the "clean:" portion of my makefile is broken. Thus when I used make clean nothing happened. Deleting the .o files manually fixed the problem. The flags work perfectly now. Thanks to everyone who posted anyway! This can be deleted now.