[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc and profiling
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: gcc and profiling
- From: Ian Main <imain_(_at_)_netidea_(_dot_)_com>
- Date: Sat, 4 Dec 1999 00:19:37 -0800
- Reply-to: Ian Main <imain_(_at_)_netidea_(_dot_)_com>
On Fri, Dec 03, 1999 at 11:25:05PM -0800, Hugh Graham wrote:
> On Fri, Dec 03, 1999 at 06:03:59PM -0800, Ian Main wrote:
> > But, as soon as you try to link something against it:
> >
> > $ gcc -pg hello.c -o hello -ltermcap
> > ld: No reference to __DYNAMIC
> > collect2: ld returned 1 exit status
> >
> > the same thing without -pg works fine.
> >
>
> I'm not sure if this is supposed to be automatic or not, but I think
> you'll find "gcc -pg hello.c -o hello -ltermcap_p" works.
Yes, indeed it does, but my problem is this is actually a gtk application,
with embedded perl interpreter, gdk_imlib etc.. would be quite the fun
getting profiling libs for them all :)
Ian
Visit your host, monkey.org