This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using GCC/GDB from within Eclipse - stopped working?

Has anyone had the problem recently of trying to make or debug from within GCC and hitting an exception immediately? I believe I picked up an update to Eclipse because after closing Eclipse and reopening, I hit this error on projects that have been rock-solid. If I find anything out, I'll posts, but I'm wondering if this has happened to others recently. I've probably had Eclipse open for 2-3 weeks, so that's the time frame. Note: the exception is not in Eclipse itself, but I believe it's use of an external GNU tool or tools? Grr.

Parents
  • I've seen this as well, but for me it is dependent on which shell I run make from. From Windows' cmd.exe, it works fine, but from Git Bash, it fails. According to this Super User question, this may have something to do with the PATH environment variable, so it could be worth trying to change that in some way.

Reply
  • I've seen this as well, but for me it is dependent on which shell I run make from. From Windows' cmd.exe, it works fine, but from Git Bash, it fails. According to this Super User question, this may have something to do with the PATH environment variable, so it could be worth trying to change that in some way.

Children
  • I had seen the comments about PATH and parentheses. I actually reinstalled the GNU tools to NOT be in the (x86) path, and am still trying to move GnuWin32 out of there as well. That's where I get my 'make' from. In the mean time, I don't have this problem with GDB after I specified the full path to the executable in the debug configuration.

  • Good to hear that you got it working! I'll definitely keep the full-path trick in mind in case of future such problems. Feel free to post your solution as an answer separately, and accept it if you think that solved your question! :)