Author Topic: aborted during compilation  (Read 6172 times)

federixo

  • Guest
aborted during compilation
« on: January 15, 2009, 12:13:36 pm »
Hello to all.
I'am a new user of code blocks,
When i try to build in the debugger window there is this message:

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Aborted

When i push the debug button compare an error window where is written:


he debugger executable is not set
To set it , go to "settings/compiler and debugger" and switch to the "progams" tab, and select the debug program.

I don't found the programs tab!!!help me!!!thank'you!!   

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: aborted during compilation
« Reply #1 on: January 15, 2009, 12:39:02 pm »
"Settings -> Compiler and debugger... -> Global compiler settings -> <the compiler you use> -> Toolchain executables -> Program files"

federixo

  • Guest
Re: aborted during compilation
« Reply #2 on: January 15, 2009, 03:28:18 pm »
Thank'you!

I foun the tab but the debugger is just set.
Here below is depicted the considerated tab..What's wrong?
Thank'you

[attachment deleted by admin]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: aborted during compilation
« Reply #3 on: January 15, 2009, 03:35:29 pm »
Thank'you!

I foun the tab but the debugger is just set.
Here below is depicted the considerated tab..What's wrong?
Thank'you
Does the executable exist ?
If not, you have to download it seperately from the MinGW-site.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: aborted during compilation
« Reply #4 on: January 15, 2009, 07:03:38 pm »
Here below is depicted the considerated tab..What's wrong?
MINGW/GCC ships NOT with the debugger by default on Windows. You need to download/install GDB separately.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline bmk

  • Single posting newcomer
  • *
  • Posts: 7
Re: aborted during compilation
« Reply #5 on: February 05, 2009, 08:47:49 am »
I encounter the same problem, gdb.exe does exist in C:\MinGW\bin but CodeBlocks still show the message "The debugger executable is not set..."
Is gdb.exe in C:\MinGW\bin the right debugger? If not where can I find it?

Thanks in advanced!

Offline bmk

  • Single posting newcomer
  • *
  • Posts: 7
Re: aborted during compilation
« Reply #6 on: February 09, 2009, 05:56:34 am »
After stuck with it for so long, ...
Finally, I try using CodeBlocks (call it father) to build a debug version of CodeBlocks (called child) from source. Then debug the process of finding debugger of the child CB. I saw detected debugger is "cdb.exe" rather than "gdb.exe".
I wonder why the father can debug while the child can't, this lead to the problem domain is project specific, and find out project setting for Compiler (this will choose corresponding debugger) is "Build Options" is MS 2005 Compiler, conflict with GNU GCC Compliler inglobal setting "Setting -> Global compiler settings -> <the compiler you use> -> Toolchain executables -> Program files".

That's it.
Hope that anyone encounter this problem may consider this as a hint.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: aborted during compilation
« Reply #7 on: February 09, 2009, 06:54:52 am »
I think every programmer should know which compiler (and therefore which toolchain) he uses for his program.

And if you would have rerad the posts carefully, you would have read this:
"Settings -> Compiler and debugger... -> Global compiler settings -> <the compiler you use> -> Toolchain executables -> Program files"

I think it's clear enough !