|
From: Ioannis V. <no...@ho...> - 2002-06-05 21:37:06
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Bob Wilson > Sent: Wednesday, June 05, 2002 4:45 PM > To: Dev-C++ User Mailing List > Subject: [Dev-C++] #include <ios> > > > > I found the solution > > > I am working my way through Andrews Koenig's and Barbara E. > Moo's book > > "Accelerated C++, Practical Programming by Example" and > have a bit of a > > problem with an include file. The program starts: > > > > #include <iomanip> > > #include <iostream> > > #include <string> > > #include <ios> > > > > using std::cin; using std::setprecision; > > using std::cout; using std::string; > > using std::endl; using std::streamsize; > > > > Unfortunately I get the following error message: > > > > "ios: No such file or directory" > > > > MSVC .NET compiles it just fine. What am I missing? > > > It is: > > #include <iomanip> > #include <iostream> > #include <string> > #ifndef __GNUC__ > #include <ios> > #endif It is not a solution. :) It's something ugly that checks if it is GCC, and if it isn't it #include <ios> else it doesn't. This assumes that GCC provides the facilities of <ios> in another header file and that GCC gives an error for <ios>. I do not like it. Nope, i don't. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |