Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Code::Blocks developint hints
grv575:
bogus file/line#s in gdb:
this is caused by having the same source file name in two different directories in the gdb source path (to see the source path type in gdb: info sources).
for example, codeblocks uses a file app.h, but there is also an app.h in wxWidgets which appears first in the source path on linux (at least for me).
so a gdb backtrace may report the wrong file/line for a stack frame in app.h (CodeBlocks one).
RShadow:
If you are using gdb as your debugger you should really compile using -ggdb instead of -g (linux anyways).
thomas:
The most obvious thing: Learn C++. This sounds like a really stupid tip, but hey ;)
If you think you know your Kung Fu, then have a look at http://www.gotw.ca/gotw/ and work through all 87 questions (or go to a similar site, there are a couple).
A lot of these problems look quite trivial at first glance, and a few solutions are arguable, but overall, you will probably find that you missed a significant thing in almost every other question.
If afterwards, you feel like hiding in a dark corner for all the things you didn't know, that's ok. It means you have learned a lot.
Navigation
[0] Message Index
[*] Previous page
Go to full version