RE: [Dev-C++] Bug in dev-c++ header files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: P.D. v. Z. <pa...@my...> - 2003-08-27 19:22:12
|
And in what way is this a bug in the MingW (NOT Dev-C++, Dev-C++ is
_NOT_ a compiler, only an IDE) headers?
The C++ standard library files are extensionless, using the .h variant
is deprecated. The compiler should tell you this, as a warning, not an
error. The proper way to write what you had is:
#include <fstream> // Note, NO extension
int main()
{
// do something with the facilities provided by fstream, for
instance:
std::ofstream out("blah.txt");
out << "Howdy" << endl;
return 0;
}
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Mohamed
Iqbal
Sent: Wednesday, August 27, 2003 8:35 PM
To: Dev-Cpp-Users
Subject: [Dev-C++] Bug in dev-c++ header files
Hi...
Try to compile the following code using Dev-C++ 4.9.8.0.
#include <fstream.h>
int main()
{}
You will receive error!!!!!
Mohammed
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|