From owner-freebsd-questions Sat Aug 15 05:35:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA23139 for freebsd-questions-outgoing; Sat, 15 Aug 1998 05:35:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (cyclone.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA23124 for ; Sat, 15 Aug 1998 05:35:26 -0700 (PDT) (envelope-from malte.lance@gmx.net) Received: from neuron.webmore.de (unverified [194.95.214.177]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Sat, 15 Aug 1998 14:36:04 +0200 Received: (from malte.lance@gmx.net) by neuron.webmore.de (8.8.8/8.8.8) id KAA01500; Sat, 15 Aug 1998 10:57:09 +0200 (CEST) From: Malte Lance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 15 Aug 1998 10:57:09 +0200 (CEST) To: Woody Carey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: generating a gmon.out with -pg compiled code? In-Reply-To: References: X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13781.19627.729978.267614@neuron.webmore.de> Reply-To: malte.lance@gmx.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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