Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Setting up Eclipse for C++
Setting up Eclipse for C++ [message #920124] Sat, 22 September 2012 19:16 Go to next message
Bradley Atkins is currently offline Bradley AtkinsFriend
Messages: 2
Registered: September 2012
Junior Member
Hi

I have decided to return to writing C++ after 25 years absence and am trying to configure Eclipse on Ubuntu to compile a simple hello world example -

#include <iostream.h>
main() {
  cout << "Hello World!\n";
}


I am getting an error when I try to build the project -

Quote:
Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'Hello World'.
java.lang.IllegalArgumentException


All I have done so far is install the CDT and create a source file in a new C++ project called helloworld.cpp.

Can anyone tell me if I should be pointing Eclipse at GCC or setting up include directories and so on? I can just about get by setting Eclipse up for Java but have no idea how to configure it to compile a C++ program.

If you are aware of any good online tutorials I would apreciate a link. The ones I have found so far all presume that Eclipse is working.

Thanks in advance for any help

Brad
Re: Setting up Eclipse for C++ [message #920147 is a reply to message #920124] Sat, 22 September 2012 19:51 Go to previous message
Bradley Atkins is currently offline Bradley AtkinsFriend
Messages: 2
Registered: September 2012
Junior Member
Hi

I have also just noticed that in my project properties under -

C/C++ Build > Settings > Error Parsers

My Error Parsers tab has a rad cross on the tab. Looks like it is trying to suggest an error on the tab somewhere.

There is a CDT GNU Make Error Parser 6.0 item marked as (Deprecated). I don't know if that is part of my issue
Previous Topic:Unresolved Symbols
Next Topic:Unresolved inclusion problem,
Goto Forum:
  


Current Time: Fri Nov 28 18:37:25 GMT 2014

Powered by FUDForum. Page generated in 0.05879 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software