Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dumb q about which lib i need

Status
Not open for further replies.

Wolfie7873

Technical User
Jan 15, 2004
94
US
So i've turned off precompiled headers, because I saw in a forum to do that. only problem is, something's not quite right as I still can't compile my basic classes.

with g++, the compiler directive
#include <fstream.h>

adds the library for handling all file/i_o streams. but, Visual C++ tells me it can't find that file. Which library am I supposed to include? The compiler thinks that ostream is an identifier and not a type.

Eddie
 
#include <fstream> without .h

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top