Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT Java Error
CDT Java Error [message #869870] Fri, 04 May 2012 11:19 Go to next message
Eclipse UserFriend
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 11:19] by Moderator

Re: CDT Java Error [message #870206 is a reply to message #869870] Mon, 07 May 2012 05:22 Go to previous messageGo to next message
Eclipse UserFriend
I am not sure but the error could be related to the space in your project's name.
Re: CDT Java Error [message #870288 is a reply to message #870206] Mon, 07 May 2012 11:06 Go to previous message
Eclipse UserFriend
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 Jun 18 01:45:47 EDT 2025

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

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

Back to the top