gpt4 book ai didi

linux - 警告 : GDB: Failed to set controlling terminal: Invalid argument

转载 作者:IT王子 更新时间:2023-10-28 23:54:57 31 4
gpt4 key购买 nike

我在 Ubuntu 上使用 Qt Creator 来开发 C。每当我使用调试器运行时,我都会收到消息 warning: GDB: Failed to set controlling terminal: Invalid argument。即使使用 hello world 程序也会发生这种情况。我该如何解决这个问题?

最佳答案

这是 Qt Creator 中的一个错误,它没有正确调用 GDB(在伪终端内,或者使用命令行参数告诉它不要期望在伪终端内运行)。它也是 GDB 中的一个错误,它可以自己弄清楚它不是在伪终端内运行并相应地运行。我怀疑 GDB 维护者会认为这是 Qt Creator 的错,反之亦然,唉。

这里有一个声称的解决方法:http://www.qtforum.org/article/31905/debugging-qt-application-on-linux.html但这对我来说听起来有点狡猾。

关于linux - 警告 : GDB: Failed to set controlling terminal: Invalid argument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3869380/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com