User forums > Help
GDB: Failed to set controlling terminal
(1/1)
nomwise:
Hi!
I have a problem with codeblocks when i wants to debug my program in C++.
I have a mistake which you can see in the attached image
In the bashrc archive, i have two variables calls EM_PREFIX and AMP_PREFIX which are actived
when i open the terminal. When i do "echo $EM_PREFIX or "echo $AMP_PREFIX" in the terminal, i see
that this variables to point at the right route.
When I go to debug my program, i have opened the terminal to these variables are active.
Do you have any idea to solve the mistake?
I use:
- Codeblocks 8.02
- GNU gdb (GDB) 7.1-ubuntu
- Kubuntu 10.04
Thanks and Regards.
Sergio.
oBFusCATed:
Search on the net about the GDB warning and you'll see it is not fatal.
In regard to the rest of you post I don't understand what is your problem, can you describe it in more details.
p.s. Don't use localized GDB or GCC, it could break C::B, because it tries to parse their output
nomwise:
--- Quote from: oBFusCATed on March 22, 2011, 01:28:45 pm ---Search on the net about the GDB warning and you'll see it is not fatal.
--- End quote ---
I have searched this problem on the net but the only thing I have found is this:
"please try to use output window (Project properties-> Run->Console type)"
In my CodeBlocks, i can not find the option to change the "Console type". Where is it?
--- Quote from: oBFusCATed on March 22, 2011, 01:28:45 pm ---In regard to the rest of you post I don't understand what is your problem, can you describe it in more details.
--- End quote ---
In my bashrc archive, I have created one variables calls EM_PREFIX:
export EM_PREFIX=~/Repo/trunk/src/em/share/em
My problem is that codeblocks or gdb does not recognize this variable or i think so. How could i fix it?
--- Quote from: oBFusCATed on March 22, 2011, 01:28:45 pm ---p.s. Don't use localized GDB or GCC, it could break C::B, because it tries to parse their output
--- End quote ---
Then, what compiler must i use?
Thanks for all!
oBFusCATed:
--- Quote from: nomwise on March 22, 2011, 02:09:56 pm ---In my CodeBlocks, i can not find the option to change the "Console type". Where is it?
--- End quote ---
Project-> Properties -> Build Target -> Type -> Console, but if you see the GDB warning your app is console, already.
--- Quote from: nomwise on March 22, 2011, 02:09:56 pm ---In my bashrc archive, I have created one variables calls EM_PREFIX:
export EM_PREFIX=~/Repo/trunk/src/em/share/em
My problem is that codeblocks or gdb does not recognize this variable or i think so. How could i fix it?
--- End quote ---
Why should C::B or GDB know about one random env variable?
--- Quote from: nomwise on March 22, 2011, 02:09:56 pm ---Then, what compiler must i use?
--- End quote ---
Non localized one, it is a settings thing, read about locales and how to set them properly...
Navigation
[0] Message Index
Go to full version