Chaithu
Chaithu

Reputation: 39

C programming using eclipse

I am new to eclipse using for C programming in Ubuntu. When I run a c program it is displaying Launch failed binary not found even after installing g++.

I installed g++ using following command

sudo apt-get install g++

second question is how to create makefile and how it is useful ?

Upvotes: 1

Views: 274

Answers (2)

asaelr
asaelr

Reputation: 5456

  1. install build-essential and eclipse-cdt. (you probably need gcc, not g++)
  2. A Makefile is a file that declares the order of building. it's very useful in large programs. (if you have just one .c file, don't use make)

Upvotes: 1

Remember to build your project first. The first time I used Eclipse+CDT I got the same error: I was trying to run the project without building it.

Upvotes: 2

Related Questions