简体   繁体   中英

Eclipse -Error while launching command: gdb --version

I am using Eclipse on a Windows system (64-bit) for C++ code and the compiler is GCC/G++. I have created a .exe and in the end it is showing as amd64/le, and I am not able to debug. When I am trying to debug, I am getting the error as

Error while launching command: gdb --version CreateProcess error=2, The system cannot find the file specified

  1. Can you please let me know what is that amd64/le?
  2. What is need to be done to debug?

You can have a look at this link . It helped me solve this problem just now,

The steps to follow are:

  • Select Debug Configurations
  • and click the Debugger tab
  • now choose a GDB debugger by clicking Browse and selecting gdb.exe from the "bin" folder of your MinGW folder

(Mostly it should be in something like C:\\Min_GW ).

AMD64/LE shows architecture / endianness. In your case architecture is X86-64 alias AMD64 and endianness is little (fixed on x86[64]).

As for your error message. It is possible that you did not install GDB when you installed your toolchain. Verify that you have it installed.

It is also possible that you have bumped into this bug . Workaround is to check your path and remove any instances of ;; (like for example in c:\\;;d:\\, which is valid for most uses, but eclipse/cdt has issues with it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM