www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - Debugging application built with makefile?

reply Eliot <eblennerhassett audioscience.com> writes:
In a recent thread (wx 2.4.2 - which version to get), I reported a problem with 
one of the samples, built using the makefile.

I tried loading this into the debugger, but got message "No debug info in file".

I changed the makefile to have
EXTRACPPFLAGS= -g
EXTRALDFLAGS=/DEBUG
made clean, and saw these flags used in compile and link.

However, the IDDE still complained about no debug info.

Can anybody give me any hints about what I should do to be able to debug in
such 
a situation?

Also do I have to rebuild the libraries with different flags to be able to
debug 
down into the library code?

thanks

Eliot
Feb 19 2004
parent "Walter" <walter digitalmars.com> writes:
Make sure that /co is used when linking.

To debug into the libraries, they have to be build with -g too.

"Eliot" <eblennerhassett audioscience.com> wrote in message
news:c13a7k$1ptf$1 digitaldaemon.com...
 In a recent thread (wx 2.4.2 - which version to get), I reported a problem
with
 one of the samples, built using the makefile.

 I tried loading this into the debugger, but got message "No debug info in
file".
 I changed the makefile to have
 EXTRACPPFLAGS= -g
 EXTRALDFLAGS=/DEBUG
 made clean, and saw these flags used in compile and link.

 However, the IDDE still complained about no debug info.

 Can anybody give me any hints about what I should do to be able to debug
in such
 a situation?

 Also do I have to rebuild the libraries with different flags to be able to
debug
 down into the library code?

 thanks

 Eliot
Feb 19 2004