Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT Java Error
CDT Java Error [message #869870] Fri, 04 May 2012 15:19 Go to next message
Amanda Ward is currently offline Amanda WardFriend
Messages: 2
Registered: May 2012
Junior Member
Hi All,

I'm new to Eclipse, but I like the IDE for the most aprt. I've been writing some simple C++ programs and encountered an error I don't understand. The program:

#include <iostream>
#include <fstream>
using namespace std;

int main() {
ofstream fFile;
fFile.open("Testfile.txt");
fFile << "Write this string to the file.\n";
fFile << "Write some more to the file.\n";
fFile.close();
return 0;
}

I see no errors in the IDE, but when I try to build the project, I get this error:

Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'File Out'.
java.lang.IllegalArgumentException

The code compiles just fine in Terminal.
I "think" everything is set up correctly, but being pretty new at this, I'm not sure!

I wouls appreciate any suggestions.

Thank you,

Amanda

[Updated on: Fri, 04 May 2012 15:19]

Report message to a moderator

Re: CDT Java Error [message #870206 is a reply to message #869870] Mon, 07 May 2012 09:22 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1968
Registered: July 2009
Senior Member
I am not sure but the error could be related to the space in your project's name.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: CDT Java Error [message #870288 is a reply to message #870206] Mon, 07 May 2012 15:06 Go to previous message
Amanda Ward is currently offline Amanda WardFriend
Messages: 2
Registered: May 2012
Junior Member
Thank you!!
I'll take a look at that.

Amanda
Previous Topic:CDT - DWARF.java
Next Topic:How can I config Eclipse to build proyect?
Goto Forum:
  


Current Time: Wed Nov 26 19:07:05 GMT 2014

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

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