Iostream not working

This is a discussion on Iostream not working within the C++ Programming forums, part of the General Programming Boards category; Whenever I try to compile a prgram with #include <iostream.h>, it says: In file included from c:\dev-c_~1\program.cpp:3: C:\DEV-C_~1\Include\iostream.h:37: istream: No ...

  1. #1
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187

    Iostream not working

    Whenever I try to compile a prgram with #include <iostream.h>, it says:

    In file included from c:\dev-c_~1\program.cpp:3:
    C:\DEV-C_~1\Include\iostream.h:37: istream: No such file or directory
    C:\DEV-C_~1\Include\iostream.h:38: ostream: No such file or directory


    I'm using Dev C++ 4.

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Guess you're missing some files from your header dir, try
    to reinstall dev

  3. #3
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    I reinstalled it, and I got the same error message.

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Anyone out there who has these files?
    Could send them to him

    [edit]

    weird theyre not their

  5. #5
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    hmm have u tried using it minus the ".h", cuz mine gives me that error if i don't use .h....

    I attached a iostream header from VS, can't hurt.

  6. #6
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    OK, I put in the new iostream, but now I have a NEW error message:

    In file included from C:\DEV-C_~1\Include\iostream.h:52,
    from c:\dev-c_~1\program.cpp:3:
    C:\DEV-C_~1\Include\ios.h:38: rw\rwstderr.h: No such file or directory
    C:\DEV-C_~1\Include\ios.h:39: rw\rwlocale: No such file or directory
    C:\DEV-C_~1\Include\ios.h:40: rw\ctype: No such file or directory
    C:\DEV-C_~1\Include\ios.h:41: rw\codecvt: No such file or directory
    C:\DEV-C_~1\Include\ios.h:42: rw\numeral: No such file or directory
    C:\DEV-C_~1\Include\ios.h:43: rw\vendor: No such file or directory
    C:\DEV-C_~1\Include\ios.h:44: rw\usefacet: No such file or directory
    In file included from c:\dev-c_~1\program.cpp:3:
    C:\DEV-C_~1\Include\iostream.h:54: streamb.h: No such file or directory
    In file included from C:\DEV-C_~1\Include\iostream.h:56,
    from c:\dev-c_~1\program.cpp:3:
    C:\DEV-C_~1\Include\istream.h:38: ios: No such file or directory
    C:\DEV-C_~1\Include\istream.h:39: ostream: No such file or directory
    In file included from C:\DEV-C_~1\Include\iostream.h:58,
    from c:\dev-c_~1\program.cpp:3:
    C:\DEV-C_~1\Include\ostream.h:42: ios: No such file or directory
    C:\DEV-C_~1\Include\ostream.h:43: streambuf: No such file or directory

  7. #7
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    iostream is a network of headers, not just iostream.h, anyway
    consult the dev compiler forum for this problem
    Maybe i really doesn't have iostream and using something else

  8. #8
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by Ride -or- Die
    hmm have u tried using it minus the ".h", cuz mine gives me that error if i don't use .h....

    I attached a iostream header from VS, can't hurt.
    so far this is the dumbest thing i've heard today
    hello, internet!

  9. #9
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187

    Re: Iostream not working

    C:\DEV-C_~1\Include\iostream.h:37: istream: No such file or directory
    C:\DEV-C_~1\Include\iostream.h:38: ostream: No such file or directory
    After last #include<>, insert "using namespace std;" in a new line.
    I got the same problem in g++, this can remedy.
    But I'm not sure for Dev-C++, just try it.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  10. #10
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    I tried the using namespace std;, but I got the same error message.

  11. #11
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by moi
    so far this is the dumbest thing i've heard today
    Maybe dumb to you, but if i don't use the ".h" on the end i get the exact same error he does. Soon as i add it back on it works fine.

  12. #12
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by Ride -or- Die
    Maybe dumb to you, but if i don't use the ".h" on the end i get the exact same error he does. Soon as i add it back on it works fine.
    no not that, the second line you said. the first one is quite reasonable, and depends upon the exact organization of header files in your standard library.

    but how could your VC++ .h help him??
    hello, internet!

  13. #13
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    oooo that part, because when i read through i was also having a conversation on AIM with someone working in VC++ and i got my thoughts mixed, and when i a header was asked for i didn't think bout it too much.

    My apologies on the misconception.

  14. #14
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154
    i no! is your PATH set to C:/dev-c++/bin?

  15. #15
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    How do I find out where my PATH set to?

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Not working Right
    By raven420smoke in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2005, 04:21 AM
  2. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 08:47 PM
  3. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 08:35 PM
  4. Drieving from iostream
    By Thantos in forum C++ Programming
    Replies: 8
    Last Post: 06-23-2004, 05:57 PM
  5. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 05:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21