Using -p (or -pg) with gcc-1.39

James Gallagher jimg at zeno.gso.uri.edu
Tue Feb 5 01:54:14 AEST 1991


I have had no success. 

Here's what I've tried: 

1) I tried compiling a simple program with 'gcc -p -v -D_BSD_SOURCE
-D_SYSV_SOURCE simple.c' and got the error 'linker cant find -lc_p'.

2) I tried 'cc -v -p simple.c' (I can use cc on simple.c, but not on the ANSI
program I want to profile). That works. So, I tried using the linker that way
cc did (it used /lib/libp/libc rather than the non-existant libc_p). However,
I got an undefined symbol error (d0 and mcount 'referenced but not defined').

Any help would be grately appreciated.

-- 
James Gallagher
jimg at zeno.gso.uri.edu



More information about the Comp.unix.aux mailing list