Results 1 to 3 of 3

Thread: What miss if iostream.h not found!!!

  1. #1
    sohochaser NNTP User

    Smile What miss if iostream.h not found!!!

    Hi All,
    I am wring a sample code under SUSE SLSE 11.

    #include <iostream.h>

    int main()
    {
    std::cout << "Hello World" << std::endl;
    return 0;
    }

    iostream.h: No such file or directory

    I have to change #include <iostream>. It works.

    My question is: iostream.h can be found under Linux 64, it lies under ./c++/4.1.1/backward/iostream.h.
    But there is no iostream.h under SUSE 11.
    Do it missing some compoent when install the machine? I just got the machine from IT!

    Any help is appreciate.
    Thanks.

    Allen

  2. #2
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: What miss if iostream.h not found!!!

    iostream.h was deprecated and now, removed. You should use iostream only.
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  3. #3
    JosephKK NNTP User

    Default Re: What miss if iostream.h not found!!!

    On Tue, 01 Dec 2009 10:56:01 GMT, syampillai
    <syampillai@no-mx.forums.opensuse.org> wrote:

    >
    >iostream.h was deprecated and now, removed. You should use iostream
    >only.


    There is a bit more to it.

    "#include <iostream.h>" is associated with the "C" libraries and
    "#include <iostream>" is associated with "C++" libraries. This
    carries across a wide variety of libraries and development
    environments.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •