Reputation: 2827
I am having problems trying to run a c++ project in eclipse.
I found several pages with solutions, but none of them worked.
The program file specified in the launch configuration does not exist
Launch Failed. Binary not found. CDT on Eclipse Helios
The program compiles:
08:52:36 **** Build of configuration Debug for project testcpp ****
make all
Building file: ../test.cpp
Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -std=c++11 -MMD -MP -MF"test.d" -MT"test.d" -o "test.o" "../test.cpp"
Finished building: ../test.cpp
Building target: testcpp.exe
Invoking: Cross G++ Linker
g++ -pthread -o "testcpp.exe" ./test.o
Finished building target: testcpp.exe
08:52:38 Build Finished (took 1s.664ms)
And the file testcpp.exe
is inside the debug folder, but when I run Run as
-> Local C/c++ Application
it shows the error Launch Failed. Binary not found.
The thing is I can just click Run
and it works.
Any idea?
Eclipse version:
Eclipse IDE for C/C++ Developers
Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800
Platform: Windows 7 64bits.
Upvotes: 0
Views: 1001
Reputation: 19863
A cheap hack could be to add your debug folder to your PATH environment variable. That way eclipse will check that path for binaries as well.
If somebody else wrote the makefile (not eclipse) then the debug path might not be known by eclipse. Try to specify the full path you want to launch
Upvotes: 1