473,513 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eclipse Build Error

176 New Member
Hello. I have recently downloaded the Eclipse integrated development environment but when I tried to compile a simple Hello world project in the console window I get an error that says:

"
**** Build of configuration Debug for project HelloWorld! ****

Nothing to build for project HelloWorld!"

If it is something wrong with my code here is the code:
Expand|Select|Wrap|Line Numbers
  1.  
  2. #include<iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6.     cout << "Hello, world!";
  7.     return 0;
  8. }
  9.  
How can I fix this? Thanks for the help.
Apr 19 '08 #1
5 12772
Banfa
9,065 Recognized Expert Moderator Expert
No it wouldn't be your code you have not inserted the file containing the code into the project. The IDE is complaining that there are no source files included in the project.
Apr 19 '08 #2
Kid Programmer
176 New Member
No it wouldn't be your code you have not inserted the file containing the code into the project. The IDE is complaining that there are no source files included in the project.
Thank you for replying but I don't understand why it can't find the file. I am positive the file exists. I saved it and then I found the folder and I opened the file.
It opened up TextEdit (I'm using a mac) and it had the source code in it.
Apr 19 '08 #3
Laharl
849 Recognized Expert Contributor
You have to use File->Import in Eclipse to bring the folder into a project for Eclipse to be able to run it. If you don't have a project, you'll need to make one.
Apr 19 '08 #4
Kid Programmer
176 New Member
You have to use File->Import in Eclipse to bring the folder into a project for Eclipse to be able to run it. If you don't have a project, you'll need to make one.
Okay thank you but I have one more problem. I really don't understand how to use eclipse to well and when I go to import I select my file and it also wants me to select a directory. None of my files are allowed to be imported for that part. What do I do.
Apr 19 '08 #5
Laharl
849 Recognized Expert Contributor
When the import window pops up and you've picked File System, select the directory you want with Browse. The files in the directory should appear on the right side of the two large boxes. Select the ones you want to import. Then pick which project you want to import to with the 'into folder' dialog box. If nothing appears there, you'll need to cancel out and create a project first.

My advice is admittedly coming from the Linux version of Eclipse, but there shouldn't be much difference.
Apr 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4591
by: gamaron | last post by:
Summary --------- I'm looking for a C++ IDE. If I'm going to learn something, I prefer it to be free-of-charge (preferably and open-source base), extensible (read: language independent,...
4
2674
by: Chuck | last post by:
Hello, I am new to the Eclipse IDE. I am using pydev plug-in to create python projects. Is there a way to create custom builders to build certain types of files? I have done this with...
4
2194
by: junee | last post by:
I tried to develop php on eclipse installed are prerequisites but it didn't work help me, if any one experienced with it succeeded. it is 0.7 build help plz
6
3002
by: kenton.wilson | last post by:
Does anyone know if Eclipse has a class hierachy / inheritence viewer for C++? I went to the Eclipse / CDT pages but didn't see anything offhand. TIA, Kent
0
1974
by: Husey | last post by:
Hi, I am trying to create a very simple EJB project which requires me to create a new jboss configuration in Eclipse. I keep getting the error message "An error has occurred. See error log for...
3
3814
by: ups_genius | last post by:
Hi everyone! I created an error parser using the existing CDT stuff by basically copying some of the GNU / make / ... error parsers' code. I also added the extension point for the new error...
15
3663
by: Ramon F Herrera | last post by:
I have been using Eclipse for a few weeks, and IMO there is no better IDE. Since my experience has been so productive -and hence satisfactory- in Java, I would like to use the same IDE...
6
4070
by: king kikapu | last post by:
Hi, this is actually goes to whoever is using Eclipse and Eric4, the IDE that comes bundled with PyQt. I was using Eclipse until i saw Eric4 and i started experiment with it, very nice work. ...
0
1128
by: thrash242 | last post by:
I have a fairly simple C++ program that uses the windows port of PDCurses, which I built and installed correctly (as far as I know). When I do a build (using make) from Eclipse, I get several...
0
7157
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.