Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!paul.rutgers.edu!aramis.rutgers.edu!dimacs.rutgers.edu!mips!sdd.hp.com!elroy.jpl.nasa.gov!lll-winken!xanth!xanth.cs.odu.edu!hobbs From: hobbs@cs.odu.edu (Andrew John Hobbs) Newsgroups: comp.sys.next Subject: Ok. So where are the C++ includes? Message-ID: Date: 25 Apr 91 06:14:19 GMT Sender: usenet@cs.odu.edu (Usenet News Poster) Distribution: comp Organization: Old Dominion University, Norfolk, VA Lines: 33 Nntp-Posting-Host: hengest.cs.odu.edu Sorry if I'm ignorant on this subject. I just got a book on C++ in obviously mistaken impression that I can actually learn it. So I get ready to type in the good old HelloWorld program that uses the supposedly standard streams.hxx class of objects. Well and good. CC++ can't find it. I search and come up with streams.h in the streams directory. Cool. Include that. cout is not defined. ARGH!!! The simple code I'm working with is this: // Hello.cxx : Saying Hello with C++ #include // stream declarations main() { cout << "Hello, World! I am " << 5 << " Today!\n"; } Even to me this seems relatively straightforward. I've tried it on the Sun SPARCs at school with the g++ compiler... WHERE ARE MY INCLUDES? This truely has to be the most frustrating part of learning a new language. Am I going to have to go out and get the .hxx files from g++ or what? hobbs@cs.odu.edu -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Well we know where we're going, but we don't know where we've been. - Talking Heads One damn minute, Admiral. - Spock, STIV =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=