CODEBLOCKS - warning: GDB: unable to install control terminal: operation not allowed

I installed Code :: Blocks 13.12 on Ubuntu 14.04 through the official repositories. When I compile, everything goes well. But when I debug, the following message is displayed on the strip:

warning: GDB: failed to install control terminal: operation is not allowed

And the program runs to the point of interruption, but when the next lines are executed, nothing else is displayed.

Does anyone know how to fix this?

Thanks in advance.

PD: I installed the latest version of GDB (the one that is in the repositories). I also tried using linux terminal instead of code blocks shown.

+6
source share
2 answers

I think this just means that code :: blocks starts gdb in "CLI" mode without creating a pseudo-terminal. So, when gdb tries to perform terminal operations, they fail. You can simply ignore these messages.

+3
source

Add:

System ("Pause")

and he will work

-4
source

Source: https://habr.com/ru/post/984154/


All Articles