From owner-freebsd-questions Wed Aug 12 11:28:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA13904 for freebsd-questions-outgoing; Wed, 12 Aug 1998 11:28:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cs.uoregon.edu (asterix.cs.uoregon.edu [128.223.8.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA13887 for ; Wed, 12 Aug 1998 11:28:20 -0700 (PDT) (envelope-from wcarey@cs.uoregon.edu) Received: from henkelix.cs.uoregon.edu (wcarey@henkelix.cs.uoregon.edu [128.223.4.96]) by cs.uoregon.edu (8.8.8/8.8.7) with SMTP id LAA22283 for ; Wed, 12 Aug 1998 11:27:46 -0700 (PDT) Date: Wed, 12 Aug 1998 11:27:46 -0700 (PDT) From: Woody Carey To: freebsd-questions@FreeBSD.ORG Subject: generating a gmon.out with -pg compiled code? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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]. 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