Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!rafos!zeno.gso.uri.edu!jimg From: jimg@zeno.gso.uri.edu (James Gallagher) Newsgroups: comp.unix.aux Subject: Using -p (or -pg) with gcc-1.39 Message-ID: <532@rafos.UUCP> Date: 4 Feb 91 14:54:14 GMT Sender: usenet@rafos.UUCP Organization: University of Rhode Island Lines: 17 Originator: jimg@zeno.gso.uri.edu 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@zeno.gso.uri.edu