[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc and profiling



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