Problem starting Eclipse Project

I tried to create a C ++ project in Eclipse Helios, it is great for some simple Hello World projects (single file, etc.). However, now I have a slightly larger project with several files, the project can still be built without any problems. In fact, when I get to the release folder, all the files are makefile, object, the actual binary executable. And I could run the binary through termainl. If I click "Run / Debug" in Eclipse for this project, it always says: "Launch Failed. Binary not found."

How to run a program in Eclipse? I would like to study its debugging features. In addition, I run eclipse on CentOS linux, and I believe that the basic settings are g ++, gdb, etc. Must be in order, otherwise the daemon hello worldwill not work.

+3
source share
2 answers

Warning: I have a very old version of eclipse and CDT, so the current procedure could change significantly.

C/C++ Project , Binaries node. . Run As.. > Local C/C++ Application. , , . , .

, Run configuration . , . , , , , ..

, Debug configuration, . Debugger, , . , -, .

+1

, - , Eclipse :

, . Project- > Properties- > C/++ Build- > Settings- > Binary Parsers, PE Parser

( Cygwin, Cygwin, Linux Elf).

, , Cross ( Windows 7, Ubuntu 12.04)

0

All Articles