|
-
Dec 8th, 2002, 05:01 AM
#1
Thread Starter
Hyperactive Member
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.
-
Dec 8th, 2002, 05:55 AM
#2
Monday Morning Lunatic
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
-
Dec 8th, 2002, 06:33 AM
#3
Thread Starter
Hyperactive Member
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?
-
Dec 8th, 2002, 07:58 AM
#4
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|