It did not help!!! how should I check if I did the changes correctly?
Main Topics
Browse All TopicsI'm using Linux Ubuntu 8.04. I've installed Eclipse 3.3 Europa and CDT successfully. I can create new C++ projects and I can use CDT nice features such as code-completion and... but as soon as I want to run a sample "hello world" I get the error: "Launch failed no binaries". I think its because I don't have any compiler! how should I install gcc or any other appropriate compiler and configure it with CDT???
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Oops ... I misinterpreted your question. Sorry. I thought you wanted to open the gcc sources in Eclipse. But you want to set gcc as the compiler for Eclipse. (I should have read the question more carefully :) )
In that case, you simply need to install gcc (if it isn't installed already), and then check the installation by issuing these commands for example :
g++ --version
make --version
If those commands give correct output, then you're all set and ready to go.
If they don't, then you haven't installed them correctly.
Note that sometimes gmake is used instead of make. So, check which is installed. If make doesn't work, but gmake does :
gmake --version
then you might have to change the build command setting in Eclipse : go to Window > Preferences > C/C++ > Make > New Make Projects. There, you can set the build command : uncheck "use default", and type in gmake.
Business Accounts
Answer for Membership
by: jkrPosted on 2008-05-20 at 09:03:27ID: 21607531
All you need to do is including the firectory where gcc is installed in your PATH environment variable. To do that, locate gcc (using "find / -name gcc -print"), then open ".bash_profile" and add
PATH=$PATH:<path_to_gcc>
export PATH
and restart Eclipse.