Menu

C++ include problem

2003-01-29
2012-09-26
  • Nobody/Anonymous

       Hello,

       new to this forum. Does someone know why I get 69 errors and 2 warnings with this c++ code:

    #include <fstream>

    int main()
    {
        return 1;
    }

       The errors come fron the includes within fstream. I dont know what to do. Greetings,

    Vicente

     
    • Nobody/Anonymous

      Just to get things started. You will need to understand <fstream> better, but try this.

      #include <iostream>
      #include <fstream>

      int main()
      {
      system("PAUSE");
      return 1;
      }

       
    • Patrick Ogay

      Patrick Ogay - 2003-01-29

      I guess vincente has rather a configuration problem,
      probably the usual problem.
      fstream is not dependend on the include of iostream (mingw GCC 2.95). I just tried it.

      by the way: a headerfile shouldn't cause errors (only a missing:-)
      Patrick

       
    • Nobody/Anonymous

      How can I make a source code by combining a discount in 10% to 30%?

       
    • Nobody/Anonymous

      Also, you might want to check this post:

      http://sourceforge.net/forum/message.php?msg_id=1789739

      Wayne

       
    • Nobody/Anonymous

      Hello,

      Thanks for the answers and thanks for the link.

      Vicente

       
    • Nobody/Anonymous

      Are you up and going yet?

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.