linux c 编译加什么参数 可以gdb

linux c 编译加什么参数 可以gdb,第1张

Linux C编译命令是gcc,gcc加上一个-g参数,编译出来的程序才能带有gdb的调试信息,才能用gdb调试。不光是gcc编译命令,编译C++程序的g++命令也是用-g选项来表示编译出的程序要带上gdb调试信息。

configure: error: `target_alias' has changed since the previous run:configure: former value: i686-pc-linux-gnuconfigure: current value: i386-rtemsconfigure: error: changes in the environment can compromise the buildconfigure: error: run `make distclean' and/or `rm ./config.cache' and start over说的很明白了。如果看不懂,那么最简单的办法就是删了这个源代码后重新解压缩。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7301664.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-04
下一篇2023-04-04

发表评论

登录后才能评论

评论列表(0条)

    保存