Date: Sat, 15 Aug 1998 10:57:09 +0200 (CEST) From: Malte Lance <malte.lance@gmx.net> To: Woody Carey <wcarey@cs.uoregon.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: generating a gmon.out with -pg compiled code? Message-ID: <13781.19627.729978.267614@neuron.webmore.de> In-Reply-To: <Pine.GSO.3.96.980812111901.662A-100000@henkelix.cs.uoregon.edu> References: <Pine.GSO.3.96.980812111901.662A-100000@henkelix.cs.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Woody Carey writes: > > I have been told that if I compile a project with the -pg flag on g++, > then run the executable, it will generate a gmon.out. I have done the > compile with the -pg flag, then run the executable, but a gmon.out > file does not appear in the directory where I ran the executable. > Is there a common beginners mistake I might have made anyone can think of, > to create these symptoms? This FreeBSD 2.2.5-RELEASE, and g++ 2.7.2.1 > yes, main() calls exit() right before the last '}', as man gprof says it > needs to. The compile line is g++ -g -c -pg [file]. Maybe you do not have write-permissions on the current-directory. Also have a look at "man moncontrol"/"man monstartup" Malte. > TIA, > > -------------------------------------------------------------------- > Woody Carey wcarey@cs.uoregon.edu 541.346.7529 > > Crash programs fail because they are based on the theory that, with > nine women pregnant, you can get a baby a month. > -- Wernher von Braun > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13781.19627.729978.267614>