[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc and profiling
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.
/Hugh
> I'm afraid I don't know much about gcc really, so I'll leave this up to you.
> If I'm just doing something dumb, or there's an easy workaround, please let
> me know cause I would like to have this working ;-)
>
> Thanks,
>
> Ian
>