Re: [Dev-C++] Bug in dev-c++ header files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hossein H. <ult...@em...> - 2003-08-31 12:38:58
|
Dear Mohammed,
> Sorry to say this, but the problem is not with the
> header, but with your program : such a syntax doesn't
> comply with ansi c++ anymore.
> I'm not a c++ guru, but I think you should write
> something like :
>
> #include <fstream>
> using namespace std;
> int main()
> {}
>
> Simply removing the ".h" from the #include works.
Anthony is completely right. According to the Standard, the C++
implementations are free to choose for the extensions of the
Standard headers. In this case, MingW, legitimately has chosen the
header not to have any extension at all. Therefore, it will
complain for not finding such a file in the include directories.
Furthermore, AFAIK, the way you coded is not Standard-compling.
It may compile under some compilers, but it is not portable by
sure.
(Excuse me if it is a bit late, I hadn't checked my email for the
couple of days before.)
Regards,
--Hossein
> By the way, I'm new to the list, so Hi! Everyone...
Hi Anthony,
Welcome man!
Have fun, and enjoy!
--Hossein
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
|