timmay3141
Programmer
I'm using fstream in an MFC app and I'm getting a really strange set of error messages. My code compiles fine not using anything involving fstream. However, if I #include <fstream> I suddenly have 103 errors. I don't even have to declare an fstream object - just #include the file. The error messages I get are basically all the same:
c:\program files\microsoft visual studio\vc98\include\fstream(218) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\fstream(213) : while compiling class-template member function 'void __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::_Init(struct _iobuf *,enum std::basic_filebuf<char,
struct std::char_traits<char> >::_Initfl)'
What's the problem here?
c:\program files\microsoft visual studio\vc98\include\fstream(218) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\fstream(213) : while compiling class-template member function 'void __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::_Init(struct _iobuf *,enum std::basic_filebuf<char,
struct std::char_traits<char> >::_Initfl)'
What's the problem here?