Results 1 to 4 of 4

Thread: iostream.h deprecated? <SOLVED>

  1. #1

    Thread Starter
    Hyperactive Member Comreak's Avatar
    Join Date
    Feb 2001
    Location
    Dis
    Posts
    319

    iostream.h deprecated? <SOLVED>

    ::Update::
    I uninstalled the old version of DevCpp and installed MinGW. I then downloaded and installed the bare IDE wo/ the compiler and directed the IDE torwards the MinGW include dir, etc. It seems to be working.


    Just decided to switch back to DevC++. I downloaded the newest version (with MinGW/GCC 3.2). When I attempted to compile a simple "Hello, World!" console app, I got a couple of errors about cin and cout not being defined. I'm assuming that iostream.h has somehow been deprecated. Anyone know what the equivalent is now? Thanks.

    edit://fixed some typos
    Last edited by Comreak; Dec 8th, 2002 at 08:11 PM.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Code:
    #include <iostream>
    
    using namespace std;
    
    int main() {
        cout << "Hello World!" << endl;
    }
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Hyperactive Member Comreak's Avatar
    Join Date
    Feb 2001
    Location
    Dis
    Posts
    319
    Yikes! The compiler hated this code even more than it hated mine (recieved about 70 errors). I can't figure out what's going on here. I couldn't even find iostream.h in the include directory of the compiler. I downloaded MinGW (the same compiler included with DevC++) to see if the header was missing from there too and it was. I wonder what is supposed to be used now?

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    That code is correct by the C++ standard.

    I believe MinGW is actually the GCC compiler in disguise, which is very fussy about configuration. Have you tried just doing a "Find Files" for iostream?

    I can't be too much help on specifics since I've never used this; Google may help you find people who've had this problem before.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

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



Click Here to Expand Forum to Full Width