delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/30/01:38:22

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199605300518.AA074273535@relay1.geis.com>
Date: Thu, 30 May 96 05:06:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: Still can't get GPROF to w

Reply to message 5892024    from CALVID AT MATISS on 05/28/96 12:38PM


>I've read the faq, but I still can't get gprof to run.  I've tried the
>following:
>
>compile with -pg (can't link with this like the faq says, is that the
	problem?)

Yes, it's the problem.  You MUST also link with -pg to get profiling info.
Why do you think that you can't do it?  When I tried it it worked fine.

>link
>exe2coff game.exe (generates game)
>run game, works fine.
>gprof game, says gmon.out file not found.
>
>What is this gmon.out and how do I make it?  Thanks in advance.

'gmon.out' is the profiling data your program (when compiled correctly)
outputs.  It is only output if you linked with -pg, however.  You can't create
it manually.

John

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019