User forums > Using Code::Blocks
Error Profiling Code
MikeTacular:
I'm using the GNU GCC Compiler, and I'm trying to profile my project. I build it with -g and -pg. After running the program, I use the Code Profiler plugin. After selecting the build with the profile info, I get an error from the Code Profiler. It says:
Unable to execute Gprof
Be sure it is in the OS global path
C::B Profiler could not complete the operation
I've tried googling this error message but I get absolutely no results. It's weird because I've profiled things in the past and it's worked just fine. I don't know why it's not working anymore. I'm using Windows Vista, and I tried running Code::Blocks as an administrator but it didn't fix anything. I don't know what I need to do. Should I reinstall MinGW? Oh, and I've installed MinGW in C:\MinGW directory. Any ideas?
zak:
--- Quote ---It's weird because I've profiled things in the past and it's worked just fine.
--- End quote ---
Look at this:
http://forums.codeblocks.org/index.php/topic,8573.0.html
maybe it can help you.
Best Regards
MikeTacular:
Yeah, I saw that page when I was searching for a solution. I've already downloaded bintools 2.17.50, but now I'm not entirely sure what to do with them. Should I replace the already installed MinGW files with them by just copy and pasting?
zak:
yes, I done that and it works.
just rename directory Mingw32
Best regards
MikeTacular:
I replaced all my MinGW files and it didn't fix it. It's not quite the same problem as you had. My problem isn't that it won't profile things correctly. It's that when I try to run the Code Profiler plugin, it can't execute gprof. I'm going to unistall Code::Blocks and MinGW and then reinstall. I'll let you know if that helps at all.
Navigation
[0] Message Index
[#] Next page
Go to full version