User forums > Help

unable to debug with fresh install of code blocks

(1/3) > >>

staticwarp:
I downloaded the code blocks 12.11 binary and installed it on my win7 x64 home premium computer. When I start code blocks, I get the following environment error:

"Can't find compiler executable in your configured search path's for GNU GCC compiler"

I'm unable to compile or debug at this point.

I've checked the executable path in the debugger settings and it is correct:

C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe

I've tried uninstalling code blocks and reinstalling it, this did not solve the issue.

I used the same binary to install this on my windows xp pc and did not get this error. I'm able to compile and debug with no problem with the default settings.

How can I solve this problem? Thanks :)

MortenMacFly:

--- Quote from: staticwarp on January 11, 2013, 02:57:54 am ---"Can't find compiler executable in your configured search path's for GNU GCC compiler"
[...]
I've checked the executable path in the debugger settings and it is correct:
C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe
[...]

--- End quote ---
You know that the debugger has nothing to do with the compiler, right?

Check you compiler settings, is the compiler installed ? What installation did you run, or what compiler do you use?

staticwarp:
Thanks for your reply. Yes, I understand that the compiler and debugger are two separate processes. I'm sorry about the way i typed the original post, I see now that it was unclear and that I'm actually trying to resolve both a debugger issue and a compiler issue. apparently I melted the problems together in my mind when I posed my question.

I was considering the compiler problem as described above first. I installed the codeblocks-12.11mingw-setup.exe installer, and would like to use the mingw compiler. I set the compiler search directory to c:\program files (x86)\codeblocks\mingw - code blocks is still unable to find the compiler. this error is unique to my win7 x64 install. I used the same code blocks installer on my xp machine as well, and there are no error messages at startup of code blocks. Which directory should I tell code blocks to search for the compiler?

Second (now that we've separated my thoughts, thanks for that  :)), when I attempt to debug my code, debugging fails with the error message "Starting the debugee failed, no executable specified, use 'target exec'." This also only happens on my win7 x64 install. I'm using gdb for the default compiler.

I sincerely appreciate any suggestions for resolving these problems. For now I'm writing my code on my XP computer because the code blocks install worked "out of the box" so to speak, with no additional configuration necessary. I'd love to know how to smooth out these issues on my main PC.

staticwarp:
don't sweat it - I'll just use VSE2012. Thanks :)

superbem:
About debugging...

I builded sucessfully CB from svn today (8792) and see that while debugging, the automatic inclusion of local variables and function arguments have not being reimplemented yet, as stated here http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#In_12.11_or_latest_nightly_builds

A healthy debugger is imprescendible.
When do you think it will be working?

Other thing but about building, my build show svn 0 instead 8792. Wonder why?

Regards

Navigation

[0] Message Index

[#] Next page

Go to full version