[GRASS5] r.sun questions

Glynn Clements glynn.clements at virgin.net
Mon Sep 22 19:23:03 EDT 2003


Hamish wrote:

> also in anyone can help, I'm having problems getting gdb to work with GRASS.
> I compiled with:
> CFLAGS="-O3 -march=pentium4 -Wall -ggdb" LDFLAGS="-s" ./configure ...

1. Don't use LDFLAGS="-s" if you want to debug the binary; "-s" strips
the debugging information.

2. Don't use -O if you want to be able to step through function
bodies. When optimisation is enabled, the compiler will re-order
statements and re-arrange expressions, resulting in object code which
barely resembles the source code.

> but gdb can't find any debug info:

That's due to 1 above.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list