Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » eclipse using some weird version of fstream?
icon9.gif  eclipse using some weird version of fstream? [message #730553] Wed, 28 September 2011 15:40 Go to next message
daft-punk-rulz is currently offline daft-punk-rulzFriend
Messages: 2
Registered: September 2011
Junior Member
not sure if the subject is the actual problem or not, but i'm trying to use an fstream in eclipse and it refuses to let me use any of the members in fstream. here is the code:

#include <fstream>
using namespace std;

int main() {
fstream file;
return 0;
}

just about as simple as it can possibly get, not even doing anything with the fstream yet, but when i try and do something with it, namely file.open() , it says that that member can't be resolved. when i type "file." and the dropdown list appears where it's supposed to show the available members, the only member there is basic_fstream, whatever that's supposed to mean. can someone inform me on how to make an fstream be how it's supposed to be normally?

[Updated on: Wed, 28 September 2011 15:43]

Report message to a moderator

Re: eclipse using some version of fstream? [message #730617 is a reply to message #730553] Wed, 28 September 2011 17:37 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 28-Sep-11 09:40, daft-punk-rulz wrote:
> not sure if the subject is the actual problem or not, but i'm trying to
> use an fstream in eclipse and it refuses to let me use any of the
> members in fstream. here is the code:
>
> #include <fstream>
> using namespace std;
>
> int main() {
> fstream file;
> return 0;
> }
>
> just about as simple as it can possibly get, not even doing anything
> with the fstream yet, but when i try and do something with it, namely
> file.open() , it says that that member can't be resolved. when i type
> "file." and the dropdown list appears where it's supposed to show the
> available members, the only member there is basic_fstream, whatever
> that's supposed to mean. can someone inform me on how to make an fstream
> be how it's supposed to be normally?

Check out sticky posts at top of forum.
Re: eclipse using some version of fstream? [message #730996 is a reply to message #730617] Thu, 29 September 2011 16:43 Go to previous messageGo to next message
daft-punk-rulz is currently offline daft-punk-rulzFriend
Messages: 2
Registered: September 2011
Junior Member
mkay then, i'll make my post in that other forum if thats what you're saying. The reason i put it here was because i wasn't sure if it was a problem with using eclipse, or a problem using the compiler :/

[Updated on: Thu, 29 September 2011 16:45]

Report message to a moderator

Re: eclipse using some version of fstream? [message #731025 is a reply to message #730996] Thu, 29 September 2011 17:54 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 29-Sep-11 10:43, daft-punk-rulz wrote:
> mkay then, i'll make my post in that other forum if thats what your
> saying. The reason i put it here was because i wasn't sure if it was a
> problem with using eclipse, or a problem using the compiler :/

As soon as what you're asking relates to C/C++, go to the Eclipse CDT
forum. If it's just launching Eclipse, working the editor, navigating
workbench panes/views, etc. this is a good place. The C/C++ compiler
you're using doesn't belong to Eclipse. It's just wired into Eclipse via
plug-ins.
Previous Topic:UML2 source code
Next Topic:SWT error no more handles
Goto Forum:
  


Current Time: Tue Mar 19 02:32:32 GMT 2024

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

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

Back to the top