User forums > General (but related to Code::Blocks)
initscr() and gdb problem
Hirogens:
Hi,
I have ported my application to Debian.
Codeblocks work
My application work under linux
but if I want debug (gdb) , the my application Exit at the init of curses "initscr()"
the rapid message, said "error opening terminal, unkown"
For Info,
gdb:
Installed: 7.0.1-2+b1
Candidate: 7.0.1-2+b1
Version table:
codeblocks:
Installed: 10.05dbg7289-1
Candidate: 10.05dbg7289-1
Version table:
Only on debug
B.Regards
oBFusCATed:
Does it happen if you use gdb on the command line?
Jenna:
Searching the web shows, that it seems to be a problem of gdb, not of C::B.
And searching also leads to an answer from this forum (just a workaround, not a real solution):
http://forums.codeblocks.org/index.php/topic,8810.msg100996.html#msg100996
Hirogens:
Hi,
I have just found a another solution.
I don't start Codeblock by Gnome menu.
I start an root terminal and i type "codeblock>nul&"
and now It work...
B.Regards
Jenna:
--- Quote from: Hirogens on August 09, 2011, 02:06:22 pm ---Hi,
I have just found a another solution.
I don't start Codeblock by Gnome menu.
I start an root terminal and i type "codeblock>nul&"
and now It work...
B.Regards
--- End quote ---
It's nearly the same, you start from a console.
It's generally not a good idea to work as root, especially if you do programming, unless you are absolutely sure you know what you do.
In short, don't use the root terminal, use "normal" terminal.
Navigation
[0] Message Index
[#] Next page
Go to full version