Author Topic: Fix - Fatal Error Directive: Must use C++ for the type iostream  (Read 11146 times)

kathir

  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
Fix - Fatal Error Directive: Must use C++ for the type iostream
« on: January 30, 2012, 01:19:51 am »
It is more common that you may see this error message  "Fatal Error Directive: Must use C++ for the type iostream". It is mainly due to including the iostream.h header file in C program.

Note that iostream.h header file is only C++ that is the file names having an extension .CPP.

If you have iostream.h in any .C file, then you will get this fatal error.

 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1