1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

C++ compiling error

Discussion in 'Software Development' started by rrrperson, Apr 24, 2010.

Thread Status:
Not open for further replies.
  1. rrrperson

    rrrperson Thread Starter

    Joined:
    Apr 27, 2006
    Messages:
    35
    I would have liked to put the entire error in the title, but it's too long. What I'm trying to do is open one file for reading, read text and do some basic parsing, and write the results to another file. The error I'm getting is:

    c:\program files (x86)\microsoft visual studio 10.0\vc\include\fstream(1347): error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'

    I'm using MS Visual C++ 2010 Express. I have exactly zero instances of red underlining, which makes this compilation problem strange to me. I can't find where the problem is, and googling it has turned up nothing useful. So I'm coming here.

    I have attached the source code for everyone to look at (zipped CPP source code).

    Thanks in advance to anyone who can help me.
     

    Attached Files:

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/919048

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice