Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » gmon.out not in a.out format?

This thread is locked; no one can reply to it. rss feed Print
gmon.out not in a.out format?
kazzmir
Member #1,786
December 2001
avatar

i compiled my program with the -pg flag and when i run gprof on gmon.out i get the following error:

gprof: gmon.out: not in a.out format

it is a multi file program and yes i compiled every file with the same flags including -pg. it used to work when i was using gcc 2.96-6, but now that i have gcc-3.2 it doesnt work. any ideas?

HoopsMan
Member #1,943
February 2002

I hope you are using gprof correctly.
After the executable is run, the gmon.out file is created.
Then you have to run "gprof.exe <executable name>" and not "gprof gmon.out".
I made this mistake earlier when i tried profiling. Hope it helps.

kazzmir
Member #1,786
December 2001
avatar

ahh, ok. thats exactly what i was doing wrong. heh, and ive used gprof before, you would think i would remember how to use it.

Go to: