Rob Bradford wrote:
On Mon, 2008-03-17 at 19:52 +0800, Max Waterman wrote:
Rob Bradford wrote:
Your .c: target should look like this:
.c:
$(CC) -g -Wall $(INCS) [EMAIL PROTECTED] $(LIBS) -o $@
(Notice the addition of -g.)
Yes, I put that in deliberately. Is that an error? That's to stop the
compiler stripping out info I need for debug, no? I've even done Linux
development (Montevista linux on Motorola phones) so I should already
know this sort of thing - amazing what you can forget in a couple of
years :|
No, your version was missing the '-g' you need the '-g' to get the line
number information. This is different from stripping an object that
already has the debug information in.
Ah, sorry. Yes, my version certainly has that in since it would be the first
thing I would have tried. I guess I just didn't put that in the checked in
version (I copied it from one of the example).
The debug information also includes the path to the directory where the
source code for the object was stored when it was compiled. This means
that you usually don't need to tell gdb where to find the source code,
if you've built it yourself.
If you are trying to build against trunk then you'll want to update your
Makefile to use the current clutter-0.7 pkg-config target.
ok, fair enough. It sounds like I'm going to be compiling it myself then :)
For the record, the problems I've been seeing in eclipse (after compiling with
-g) are when I step over some random line it just runs to completion like I
pressed 'continue'. Does that ring any bells?
Max.
Cheerio,
Rob
--
To unsubscribe send a mail to [EMAIL PROTECTED]