   Using fstream.h problem
  I am including fstream.h in two different files of my project.I get no compilation errors such as:d:\program files\microsoft visual studio\vc98\include\ios.h(146) : error C2872: ''streambuf'' : ambiguous symbolI must have the fstream.h in both of my h files becuase they use ifstream.What cause the problem and how can I deal with it? 
  You should really use < fstream > instead of < fstream.h >The .h headers are deprecated since 1998 and new compilers including VS .NET 2003 and GCC 3.4 don't have them anymore   [edited by - noVum on February 15, 2004 8:42:03 AM];quote:Original post by noVum  You should really use < fstream > instead of < fstream.h >The .h headers are deprecated since 1998 and new compilers including VS .NET 2003 and GCC 3.4 don''t have them anymore   [edited by - noVum on February 15, 2004 8:42:03 AM]I did that and it workes now.Thanks;  If you use  instead of  don''t you have to use "using namespace std;"?   /*I use DirectX 8.1 and C++ (Microsoft Visual C++ 6.0 Professional edition)*/ ;  nope, just fully qualify everything by putting std:: infront of it, such as std::ifstream, std::endl etc ;  Well that is so much better  /*I use DirectX 8.1 and C++ (Microsoft Visual C++ 6.0 Professional edition)*/ ;  aye, it is, coz on first glance you can see where the objects come from and you dont import all of the std into the global namespace, kinda defeating the purpose of namespace imo ;  I learned that it''s okay to put in "using namespace std;" in a source file if you don''t want to type std:: a million times, but that including it in a header file is Not Good. 