Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2001 01:25:12 +0000 (GMT)
From:      George Reid <greid@ukug.uk.freebsd.org>
To:        hanbauder@netscape.net
Cc:        questions@FreeBSD.ORG
Subject:   Re: Debug with gdb
Message-ID:  <Pine.BSF.4.21.0102200124310.1911-100000@sobek.openirc.co.uk>
In-Reply-To: <24683761.3B542437.02FF9DBE@netscape.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Feb 2001 hanbauder@netscape.net wrote:

> Hello,
> I have a executable binary "program" which is generated like this:
> 
> gcc -c program.c -Wall
> gcc -c program_1.c -Wall
> gcc -c program_2.c -Wall
> gcc program.o program_1.o program_2.o -o program -g -Wall

You need to compile the individual modules with -g as well.

G

"And then it comes to be that the soothing light
   at the end of your tunnel was just a freight
            train, comin' your way."

      George Reid * greid@ukug.uk.freebsd.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0102200124310.1911-100000>