Skip to main content



      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 11:40 Go to next message
Eclipse UserFriend
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 11:43] by Moderator

Re: eclipse using some version of fstream? [message #730617 is a reply to message #730553] Wed, 28 September 2011 13:37 Go to previous messageGo to next message
Eclipse UserFriend
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 12:43 Go to previous messageGo to next message
Eclipse UserFriend
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 12:45] by Moderator

Re: eclipse using some version of fstream? [message #731025 is a reply to message #730996] Thu, 29 September 2011 13:54 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 03:33:36 EDT 2025

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

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

Back to the top