delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/01/17:16:47

From: "Faust" <kmfdm AT technonet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Please Help!!! Im really stuck on this and the FAQs not helping
Date: Mon, 1 Sep 1997 11:14:42 -0000
Organization: NetLink Internet Systems
Lines: 42
Message-ID: <5uelvq$eul@ns.technonet.com>
NNTP-Posting-Host: ppp24.technonet.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ive read thru the FAQ, and its not helping me with my problem. Ive tried
everything its said to but none has worked.

Also, Ive downloaded all zips needed for C++ and I have the iostream.h

The program is a simple "Hello World" that looks like this:

-----------
#include <iostream.h>

int main()
{
   cout << "Hello World!\n";
   return 0;
}
-----------

Every time I run gcc it says :

-----------
hello.cpp:1: iostream.h: No Such File or Directory (ENOENT)
-----------

Ive also tried removing the "#include <iostream.h>" line and it says:

-----------
hello.cpp: In Function 'int main()':
hello.cpp:3: 'cout' undeclared (first use this function)
hello.cpp:3: (Each undeclared identifier is reported only once
hello.cpp:3: for each function it appears in.)
-----------

Anyone know what my problem is? Ive spent forever trying to figure it out...









- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019