Date: Wed, 12 Aug 1998 11:27:46 -0700 (PDT) From: Woody Carey <wcarey@cs.uoregon.edu> To: freebsd-questions@FreeBSD.ORG Subject: generating a gmon.out with -pg compiled code? Message-ID: <Pine.GSO.3.96.980812111901.662A-100000@henkelix.cs.uoregon.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.980812111901.662A-100000>