Eclipse CDT project built but “Launch Failed. Binary Not Found”

后端 未结 16 2241
臣服心动
臣服心动 2020-12-13 07:14

Windows 7, Eclipse CDT, Juno Service Release 2, Cross compiler.

Projects do compile executables generated, but Eclipse can\'t see them; therefore \'Run\' fails. Exec

相关标签:
16条回答
  • 2020-12-13 07:15

    I think I found solution - proper binary parser must be selected so Eclipse can recognize the executable:

    Select the project, then right-click. Project->Properties->C/C++ Build->Settings->Binary Parsers, PE Windows Parser.

    I.e. if Cygwin compiler is used then Cygwin parser should be used.

    That worked for me at least for Cross-compiler (both on Windows 7 and Ubuntu 12.04). On Linux, I use Elf parser.

    If anyone has the better solution, please advise.

    0 讨论(0)
  • 2020-12-13 07:16

    Make sure that the folder name does not contain .c extension. When I removed the .c extension in my folder name it worked automatically.

    0 讨论(0)
  • 2020-12-13 07:18

    This worked for me.

    Go to Project --> Properties --> Run/Debug Settings --> Click on the configuration & click "Edit", it will now open a "Edit Configuration".

    Hit on "Search Project" , select the binary file from the "Binaries" and hit ok.

    Note : Before doing all this, make sure you have done the below

    --> Binary is generated once you execute "Build All" or (Ctrl+B)

    0 讨论(0)
  • 2020-12-13 07:18

    The video link below illustrate these steps in more detail:

    1. Create Empty project
    2. Choose linux Gcc compiler
    3. Right click on project choose " source folder "
    4. Name it " src "
    5. Right click on src folder choose " source file "
    6. Start coding
    7. Save project
    8. Build project
    9. Run project

    https://www.youtube.com/watch?v=wtyBvagV-_A

    0 讨论(0)
  • 2020-12-13 07:19

    Simply select the project and press CTRL + B.

    0 讨论(0)
  • 2020-12-13 07:20

    You need to click on the MinGW compiler when running the code. Failure to do this will cause the launch failed binary not found error.

    0 讨论(0)
提交回复
热议问题