Menu

iostream.h help...

2002-09-15
2012-09-26
  • Nobody/Anonymous

    I can't seem to get iostream.h to use itself as an include file. I get the error saying that the file or directory doesn't exist. I use Bloodshed Dev-C++. Does anyone have the same problem?

     
    • Nobody/Anonymous

      iostream is not in the include directory, it is in the include/g++3 directory. If you compile a c program then  the compiler only looks in the include directory and when you compile a c++ program it also looks in g++3.
      You have to indicate that you want it to be compiled as c++. You can rename you file blabla.c to blabla.cpp or you can select c++ in the project options.

      note1: you should #include<iostream> without the .h, this is the current standard.
      note2: to see which include directories are used for c and c++ you can look at Tools->Compiler Options-> directories.

      stephan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.