linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Debug flag for libraries.
@ 2003-07-01  5:53 Ramanan, Venkat (MED)
  2003-07-01 11:02 ` Glynn Clements
  2003-07-01 15:00 ` Darío Mariani
  0 siblings, 2 replies; 5+ messages in thread
From: Ramanan, Venkat (MED) @ 2003-07-01  5:53 UTC (permalink / raw)
  To: linux-c-programming

Hi all,

I need to compile a program with the debug flag "-g". The program uses some (static) libraries which have already been compiled without the "-g" flag. So, if I need all the debugging information ( line numbers etc. ) even from the libraries, do I need to recompile the libraries? Or is the "-g" flag just for the program, enough to bring all info?

I use "gcc" and "gdb".

What is the "correct" thing to do? Any advice would be greatly appreciated.

Thanks in advance,
Venkat.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Debug flag for libraries.
@ 2003-07-03  7:24 Ramanan, Venkat (MED)
  0 siblings, 0 replies; 5+ messages in thread
From: Ramanan, Venkat (MED) @ 2003-07-03  7:24 UTC (permalink / raw)
  To: linux-c-programming

Thanks for the responses. I thought I could get away with not compiling
the libraries.

Thanks anyway,
Venkat.

-----Original Message-----
From: Glynn Clements [mailto:glynn.clements@virgin.net]
Sent: Tuesday, July 01, 2003 4:33 PM
To: Ramanan, Venkat (MED)
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Debug flag for libraries.



Ramanan, Venkat (MED) wrote:

> I need to compile a program with the debug flag "-g". The program uses
> some (static) libraries which have already been compiled without the
> "-g" flag. So, if I need all the debugging information ( line numbers
> etc. ) even from the libraries, do I need to recompile the libraries?

Yes.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-03  7:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-01  5:53 Debug flag for libraries Ramanan, Venkat (MED)
2003-07-01 11:02 ` Glynn Clements
2003-07-02 18:48   ` Elias Athanasopoulos
2003-07-01 15:00 ` Darío Mariani
  -- strict thread matches above, loose matches on Subject: below --
2003-07-03  7:24 Ramanan, Venkat (MED)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).