User forums > Help

can't compile with [-g] correctly

(1/1)

polisbul:
I'm using ubuntu 10.04 and codeblocks 10.05, and can't compile correctly with [-g] option for debugging. debug mode seems not to work (debugger shows me only symbols and codes, not code lines). [-g] is the only option enabled. outside codeblocks ddd works fine, so i suppose it's a compiling error.
any hint?

oBFusCATed:
Read these two:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

polisbul:
checked all those pages, but nothing changes...
I still get this message:

warning: GDB: Failed to set controlling terminal: Operation not permitted

oBFusCATed:
Have you tried to search about this warning?

Jenna:

--- Quote from: polisbul on January 03, 2013, 12:37:29 pm ---checked all those pages, but nothing changes...
I still get this message:

warning: GDB: Failed to set controlling terminal: Operation not permitted


--- End quote ---
It's the first time you post about this message.
So it looks like you are not able or willing to give the needed information to evn try to help you.

And as you can see it's a warning message, not an error.
Search the web for it and youz will see it's a gdb, not a C::B issue, but it does not harm in any way.
Debugging usually works fine with C::B.

Navigation

[0] Message Index

Go to full version