[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with two object files in GDB
From: |
Benoit Hudson |
Subject: |
Re: Problem with two object files in GDB |
Date: |
Mon, 30 Jul 2001 14:33:15 -0400 |
On Sat, Jul 28, 2001 at 04:20:20PM +0530, Somavarapu, Lakshmi Sumathi (Lakshmi)
wrote:
> > Hi,
> >
> > While using gdb with two .o files I am getting the error message of " no
> > debugging symbols found" while it works fine with a
> > single file. The following were the command that I used.(Source files
> > being t.c t1.c)
> >
> > $ CC -g -c t1.c
> > $ CC -g -c t.c
> > $CC t1.o t.o -o t
> > $gdb t
> >
> > Please help solve it.
You need to link with -g as well.
-- BenoƮt